UpdateSelectionRequest.go 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. FreeStrategys []UpdateFreeStrategys `json:"free_strategys"` // 免费领样策略
  24. RewardStrategys []UpdateRewardStrategys `json:"reward_strategys"` // 悬赏策略
  25. Status int `json:"status"` // 是否删除
  26. }
  27. type SecBriefInfo struct {
  28. PhotoUrl string `json:"photo_url"`
  29. PhotoUid string `json:"photo_uid"`
  30. Name string `json:"name"`
  31. }
  32. type SecExampleInfo struct {
  33. PhotoUrl string `json:"photo_url"`
  34. PhotoUid string `json:"photo_uid"`
  35. Name string `json:"name"`
  36. }
  37. type UpdateSelectionData struct {
  38. SelectionId string `json:"selection_id"`
  39. }
  40. type UpdateProductData struct {
  41. ProductId string `json:"product_id"`
  42. }
  43. type UpdateFreeStrategys struct {
  44. StrategyId int64 `json:"strategy_id"` // 策略编号
  45. FansNum int64 `json:"fans_num"` // 粉丝数目
  46. SaleNum int64 `json:"sale_num"` // 近30天橱窗销量
  47. EnrollNum int64 `json:"enroll_num"` // 报名人数
  48. ChooseNum int64 `json:"choose_num"` // 已选人数
  49. }
  50. type UpdateRewardStrategys struct {
  51. Reward float64 `json:"reward"` // 悬赏池总金额
  52. SaleActual int64 `json:"sale_actual"` // 实际带货销量
  53. PerReward float64 `json:"per_reward"` // 每人可获得悬赏金
  54. }
  55. func NewUpdateSelectionRequest() *UpdateSelectionRequest {
  56. return new(UpdateSelectionRequest)
  57. }
  58. func NewUpdateSelectionResponse() *CommonResponse {
  59. resp := new(CommonResponse)
  60. resp.Data = new(UpdateSelectionData)
  61. return resp
  62. }