goods.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package model
  2. type Goods struct {
  3. Id int64 `db:"id"`
  4. Pic Pic `db:"pic"`
  5. OwnerId int64 `db:"owner_id"`
  6. Desc string `db:"desc"`
  7. Title string `db:"title"`
  8. Price int64 `db:"price"`
  9. Integrity int `db:"integrity"`
  10. Place string `db:"place"`
  11. State int `db:"state"`
  12. }
  13. type GoodsJson struct {
  14. Pic Pic `json:"pic"`
  15. OwnerId int64 `json:"ownerId"`
  16. Desc string `json:"desc"`
  17. Title string `json:"title"`
  18. Price int64 `json:"price"`
  19. Integrity int `json:"integrity"`
  20. Place string `json:"place"`
  21. Categories []int64 `json:"categories"`
  22. State int `json:"state"`
  23. }
  24. type GoodsSurfaceJson struct {
  25. Pic Pic `json:"pic"`
  26. OwnerId int64 `json:"ownerId"`
  27. Title string `json:"title"`
  28. Price int64 `json:"price"`
  29. Integrity int `json:"integrity"`
  30. State int `json:"state"`
  31. }
  32. type GoodsSurface struct {
  33. Id int64 `db:"id"`
  34. Pic Pic `db:"pic"`
  35. OwnerId int64 `db:"owner_id"`
  36. Title string `db:"title"`
  37. Price int64 `db:"price"`
  38. Integrity int `db:"integrity"`
  39. State int `db:"state"`
  40. }