seach_youngee.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package http_model
  2. type SearchYoungeeRequest struct {
  3. PageSize int32 `json:"page_size"`
  4. PageNum int32 `json:"page_num"`
  5. ProjectType string `json:"project_type"` // 项目类型
  6. TaskType string `json:"task_type"` // 任务形式
  7. Platform string `json:"platform"` // 社媒平台
  8. ContentType string `json:"content_type"` // 内容形式
  9. }
  10. type SearchYoungeePreview struct {
  11. ID string `json:"id"` // 编号
  12. StrategyId string `json:"strategyId"` // 定价策略编号
  13. ProjectType string `json:"project_type"` // 项目类型
  14. Platform string `json:"platform"` // 社媒平台
  15. TaskType string `json:"task_type"` // 任务形式
  16. ContentType string `json:"content_type"` // 内容形式
  17. Reason string `json:"reason"` // 奖励原因
  18. Points string `json:"points"` // 积分奖励
  19. Cash string `json:"cash"` // 现金奖励
  20. Createat string `json:"create_at"` // 更新时间
  21. }
  22. type SearchYoungeeData struct {
  23. SearchYoungeePreview []*SearchYoungeePreview `json:"search_Youngee_preview"`
  24. Total string `json:"total"`
  25. }
  26. func NewSearchYoungeeRequest() *SearchYoungeeRequest {
  27. return new(SearchYoungeeRequest)
  28. }
  29. func NewSearchYoungeeResponse() *CommonResponse {
  30. resp := new(CommonResponse)
  31. resp.Data = new(SearchYoungeePreview)
  32. return resp
  33. }