AllSelectionHandler.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package http_model
  2. type SelectionSquareCondition struct {
  3. ProductType int16 `condition:"product_type"` // 商品类型
  4. Platform int16 `condition:"platform"` // 社媒平台
  5. SampleMode int16 `condition:"sample_mode"` // 领样形式
  6. TaskMode int16 `condition:"task_mode"` // 任务形式
  7. }
  8. type GetAllSelectionRequest struct {
  9. PageSize int64 `json:"page_size"`
  10. PageNum int64 `json:"page_num"`
  11. ProductType int16 `json:"product_type"` // 商品类型
  12. Platform int16 `json:"platform"` // 社媒平台
  13. SampleMode int16 `json:"sample_mode"` // 领样形式
  14. TaskMode int16 `json:"task_mode"` // 任务形式
  15. }
  16. type SelectionBriefInfo struct {
  17. SelectionId string `json:"selection_id"`
  18. SelectionName string `json:"selection_name"` // 项目名称
  19. Platform int `json:"platform"` // 社媒平台,1-7分别表示小红书、抖音、微博、快手、b站、大众点评、知乎
  20. EstimatedIncome float64 `json:"estimated_income"` // 预估赚金额,计算方式:商品售价×佣金比例
  21. ProductPrice float64 `json:"product_price"` // 售价
  22. CommissionRate float64 `json:"commission_rate"` // 佣金比例,百分之
  23. TaskReward float64 `json:"task_reward"` // 额外悬赏
  24. SampleMode int `json:"sample_mode"` // 领样形式,1、2、3分别表示免费领样、垫付领样、不提供样品
  25. TaskMode int `json:"task_mode"` // 任务形式,1、2分别表示悬赏任务、纯佣带货
  26. PlatformIcon string `json:"platform_icon"` // 平台logo
  27. PhotoUrl string `json:"photo_url"`
  28. }
  29. type SelectionBriefInfoPreview struct {
  30. SelectionBriefInfo []*SelectionBriefInfo `json:"selection_brief_info"`
  31. Total string `json:"total"`
  32. }
  33. func NewGetAllSelectionRequest() *GetAllSelectionRequest {
  34. return new(GetAllSelectionRequest)
  35. }
  36. func NewGetAllSelectionResponse() *CommonResponse {
  37. resp := new(CommonResponse)
  38. resp.Data = new(SelectionBriefInfoPreview)
  39. return resp
  40. }