UpdateSelection.go 1.6 KB

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