kfc.go 1008 B

12345678910111213141516171819202122232425262728
  1. package kfc
  2. import "go-common/library/time"
  3. // ListParams .
  4. type ListParams struct {
  5. CouponCode string `form:"coupon_code"`
  6. Mid int64 `form:"mid"`
  7. Pn int `form:"pn" default:"0" validate:"min=0"`
  8. Ps int `form:"ps" default:"15" validate:"min=1"`
  9. }
  10. //BnjKfcCoupon def
  11. type BnjKfcCoupon struct {
  12. ID int64 `json:"id" gorm:"column:id"`
  13. Mid int64 `json:"mid" gorm:"column:mid"`
  14. CouponCode string `json:"coupon_code" gorm:"column:coupon_code"`
  15. Desc string `json:"desc" gorm:"column:desc"`
  16. State int `json:"state" gorm:"column:state"`
  17. DeleteTime time.Time `json:"delete_time" gorm:"column:delete_time" time_format:"2006-01-02 15:04:05"`
  18. Ctime time.Time `json:"ctime" gorm:"column:ctime" time_format:"2006-01-02 15:04:05"`
  19. Mtime time.Time `json:"mtime" gorm:"column:mtime" time_format:"2006-01-02 15:04:05"`
  20. }
  21. // TableName BnjKfcCoupon def
  22. func (BnjKfcCoupon) TableName() string {
  23. return "bnj_kfc_coupon"
  24. }