category.go 327 B

123456789101112131415161718
  1. package model
  2. type Category struct {
  3. Id int64 `db:"id"`
  4. Name string `db:"name"`
  5. Pic string `db:"pic"`
  6. }
  7. type CategoryJson struct {
  8. Name string `json:"name"`
  9. Pic string `json:"pic"`
  10. }
  11. type CategoryOfGoods struct {
  12. Id int64 `db:"id"`
  13. GoodsId int64 `db:"goods_id"`
  14. CategoryId int64 `db:"category_id"`
  15. }