card.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package models
  2. type CreateMerchantCardRequest struct {
  3. MerchantCardName string `json:"merchant_card_name"` // 商户卡名称
  4. MerchantOpenID string `json:"open_id"` // openid
  5. CardProjectData []int64 `json:"card_project_data"` // 项目
  6. CardPrice string `json:"card_price"` // 单价
  7. ActivityEndTime string `json:"activity_end_time"` // 活动结束时间
  8. ActivityStartTime string `json:"activity_start_time"` // 活动开始时间
  9. MerchantCardTime string `json:"merchant_card_time"` // 商户卡有效期
  10. Inventory string `json:"inventory"` // 库存数量
  11. QuotaNum string `json:"quota_num"` // 限购数量
  12. UseRule string `json:"use_rule"` // 使用规则
  13. Picture string `json:"picture"` // 图片
  14. RebateRate string `json:"rebate_rate"` // 佣金比例
  15. }
  16. type GetMerchantCardRequest struct {
  17. MerchantId int64 `json:"merchant_card_id"` //商户卡id
  18. }
  19. type GetMerchantCardReply struct {
  20. MerchantCardName string `json:"merchant_card_name"` // 商户卡名称
  21. MerchantOpenID string `json:"merchant_open_id"` // openid
  22. CardProjectData string `json:"card_project_data"` // 项目
  23. CardPrice string `json:"card_price"` // 单价
  24. ActivityEndTime string `json:"activity_end_time"` // 活动结束时间
  25. ActivityStartTime string `json:"activity_start_time"` // 活动开始时间
  26. MerchantCardTime string `json:"merchant_card_time"` // 商户卡有效期
  27. Inventory int64 `json:"inventory"` // 库存数量
  28. QuotaNum int64 `json:"quota_num"` // 限购数量
  29. UseRule string `json:"use_rule"` // 使用规则
  30. Picture string `json:"picture"` // 图片
  31. RebateRate int64 `json:"rebate_rate"`
  32. }
  33. type MerchantCardListRequest struct {
  34. OpenId string `json:"open_id"`
  35. PageSize int `json:"page_size"`
  36. PageIndex int `json:"page_index"`
  37. TypeList int `json:"type_list"` //1-未开始 2-进行中 3-已结束
  38. }
  39. type UpdateMerchantCardRequest struct {
  40. ID int64 `json:"id"`
  41. ActivityEndTime int64 `json:"activity_end_time"` // 活动结束时间
  42. ActivityStartTime int64 `json:"activity_start_time"` // 活动开始时间
  43. Inventory int64 `json:"inventory"` // 库存数量
  44. QuotaNum int64 `json:"quota_num"` // 限购数量
  45. UseRule string `json:"use_rule"` // 使用规则
  46. Picture string `json:"picture"` // 图片
  47. }