一物一码
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

25 wiersze
1.1 KiB

  1. package model
  2. type ShakeTicket struct {
  3. Id int `json:"id" xorm:"not null pk autoincr comment('主键') INT(11)"`
  4. Uid int `json:"uid" xorm:"not null comment('用户id') index INT(20)"`
  5. ItemId string `json:"item_id" xorm:"comment('商品id') VARCHAR(50)"`
  6. IsCollect int `json:"is_collect" xorm:"not null comment('是否收藏') INT(1)"`
  7. IsCoupons int `json:"is_coupons" xorm:"not null comment('是否领券买') INT(1)"`
  8. IsShare int `json:"is_share" xorm:"not null comment('是否分享赚') INT(1)"`
  9. UserName string `json:"user_name" xorm:"not null default '' comment('用户名') VARCHAR(50)"`
  10. AvatarUrl string `json:"avatar_url" xorm:"not null default '' comment('头像url') VARCHAR(2000)"`
  11. }
  12. type ShakeTicketApp struct {
  13. Id int `json:"id"`
  14. Uid int `json:"uid"`
  15. ItemId string `json:"item_id"`
  16. IsCollect int `json:"is_collect"`
  17. IsCoupons int `json:"is_coupons"`
  18. IsShare int `json:"is_share"`
  19. UserName string `json:"user_name"`
  20. AvatarUrl string `json:"avatar_url"`
  21. Content string `json:"content"`
  22. }