UpdateSelectionRequest.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package http_model
  2. type UpdateSelectionRequest struct {
  3. EnterpriseId string `json:"enterprise_id"`
  4. SelectionID string `json:"selection_id"` // 选品项目id
  5. SelectionStatus int `json:"selection_status"`
  6. Platform int `json:"platform"`
  7. ProductId string `json:"product_id"`
  8. ContentType int `json:"content_type"`
  9. TaskMode int `json:"task_mode"`
  10. SampleNum int `json:"sample_num"` // 样品数量
  11. RemainNum int `json:"remain_num"` // 剩余数量
  12. TaskReward float64 `json:"task_reward"` // 任务悬赏
  13. TaskDdl string `json:"task_ddl"`
  14. SampleMode int `json:"sample_mode"`
  15. CommissionRate string `json:"commission_rate"`
  16. ProductUrl string `json:"product_url"`
  17. SampleCondition string `json:"sample_condition"`
  18. RewardCondition string `json:"reward_condition"` // 返现悬赏条件
  19. SecBrief []*SecBriefInfo `json:"sec_brief"`
  20. SecExample []*SecExampleInfo `json:"sec_example"`
  21. Detail string `json:"detail"`
  22. SettlementAmount float64 `json:"settlement_amount"`
  23. }
  24. type SecBriefInfo struct {
  25. PhotoUrl string `json:"photo_url"`
  26. PhotoUid string `json:"photo_uid"`
  27. Name string `json:"name"`
  28. }
  29. type SecExampleInfo struct {
  30. PhotoUrl string `json:"photo_url"`
  31. PhotoUid string `json:"photo_uid"`
  32. Name string `json:"name"`
  33. }
  34. type UpdateSelectionData struct {
  35. SelectionId string `json:"selection_id"`
  36. }
  37. type UpdateProductData struct {
  38. ProductId string `json:"product_id"`
  39. }
  40. func NewUpdateSelectionRequest() *UpdateSelectionRequest {
  41. return new(UpdateSelectionRequest)
  42. }
  43. func NewUpdateSelectionResponse() *CommonResponse {
  44. resp := new(CommonResponse)
  45. resp.Data = new(UpdateSelectionData)
  46. return resp
  47. }