discount_ticket_type.go 853 B

123456789101112131415161718192021222324252627282930
  1. package entity
  2. import "gopkg.in/guregu/null.v3"
  3. type DiscountTicketType struct {
  4. Id int `db:"id"`
  5. TypeName string `db:"type_name"`
  6. }
  7. type DiscountActParams struct {
  8. Mobile string `json:"mobile"`
  9. Pid int `json:"pid"`
  10. }
  11. type DiscountReceiveParams struct {
  12. Mobile string `json:"mobile"`
  13. Id int `json:"id"`
  14. }
  15. // 20230215 t_dicount_activity 表
  16. type DiscountActDB struct {
  17. Id int `db:"id" json:"id"`
  18. Name string `db:"name" json:"name"`
  19. EndTime string `db:"end_time" json:"end_time"`
  20. Value int `db:"value" json:"value"`
  21. TypeId int `db:"type_id" json:"type_id"`
  22. UseMaxValue null.Int `db:"use_max_value" json:"use_max_value"`
  23. BindProducts null.String `db:"bind_products" json:"bind_products"`
  24. Count int `db:"count" json:"count"`
  25. }