orders.go 491 B

12345678910111213141516171819202122
  1. package model
  2. import "time"
  3. type Order struct {
  4. Id int64 `db:"id"`
  5. GoodsId int64 `db:"goods_id"`
  6. BuyerId int64 `db:"buyer_id"`
  7. Time int64 `db:"time"`
  8. Place string `db:"place"`
  9. Phone string `db:"phone"`
  10. State int `db:"state"`
  11. }
  12. type OrderJson struct {
  13. GoodsId int64 `json:"goodsId"`
  14. BuyerId int64 `json:"buyerId"`
  15. Time time.Time `json:"time"`
  16. Place string `json:"place"`
  17. Phone string `json:"phone"`
  18. State int `json:"state"`
  19. }