UpdateSelection.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package http_model
  2. type UpdateSelectionRequest struct {
  3. SelectionID string `json:"selection_id"` // 选品项目id
  4. SelectionStatus int `json:"selection_status"`
  5. Platform string `json:"platform"`
  6. ProductId int `json:"product_id"`
  7. ContentType int `json:"content_type"`
  8. TaskMode int `json:"task_mode"`
  9. SampleNum int `json:"sample_num"` // 样品数量
  10. RemainNum int `json:"remain_num"` // 剩余数量
  11. TaskReward float64 `json:"task_reward"` // 任务悬赏
  12. TaskDdl string `json:"task_ddl"`
  13. SampleMode int `json:"sample_mode"`
  14. CommissionRate float64 `json:"commission_rate"`
  15. ProductUrl string `json:"product_url"`
  16. SettlementAmount float64 `json:"settlement_amount"` //结算金额
  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. }
  23. type SecBriefInfo struct {
  24. PhotoUrl string `json:"photo_url"`
  25. PhotoUid string `json:"photo_uid"`
  26. Name string `json:"name"`
  27. }
  28. type SecExampleInfo struct {
  29. PhotoUrl string `json:"photo_url"`
  30. PhotoUid string `json:"photo_uid"`
  31. Name string `json:"name"`
  32. }
  33. type UpdateSelectionData struct {
  34. SelectionId string `json:"selection_id"`
  35. }
  36. func NewUpdateSelectionRequest() *UpdateSelectionRequest {
  37. return new(UpdateSelectionRequest)
  38. }
  39. func NewUpdateSelectionResponse() *CommonResponse {
  40. resp := new(CommonResponse)
  41. resp.Data = new(UpdateSelectionData)
  42. return resp
  43. }