gettasklist.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package http_model
  2. type GetTaskListRequest struct {
  3. PageSize int `json:"page_size"`
  4. PageNum int `json:"page_num"`
  5. FeeFrom *int `json:"fee_from,omitempty"`
  6. Type *int `json:"type,omitempty"` // 查询类型,1、2分别表示达人来源于公海(商家端),服务商
  7. ProjectId string `json:"project_id"`
  8. CoopType int `json:"coop_type"` //1未处理,2同意,3拒绝
  9. }
  10. type GetTaskListData struct {
  11. TaskList []*TaskInfo `json:"task_list"`
  12. Total string `json:"total"`
  13. }
  14. type TaskInfo struct {
  15. TaskId string `json:"task_id"`
  16. ProjectId string `json:"project_id"`
  17. TalentId string `json:"talent_id"`
  18. FansNum int `json:"fans_num"`
  19. DraftFee float64 `json:"draft_fee"`
  20. FeeFrom int `json:"fee_from"`
  21. TaskStage int `json:"task_stage"`
  22. Voteavg int `json:"vote_avg"`
  23. Commentavg int `json:"commit_avg"`
  24. CurrentDefaultType int `json:"current_default_type"`
  25. From int `json:"from"` //1公海,2服务商
  26. SType int `json:"s_type"` //1个人,2机构
  27. Boperator string `json:"b_operator"`
  28. SettleAmount float64 `json:"settle_amount"`
  29. }
  30. func NewGetTaskListRequest() *GetTaskListRequest {
  31. return new(GetTaskListRequest)
  32. }
  33. func NewGetTaskListResponse() *CommonResponse {
  34. resp := new(CommonResponse)
  35. resp.Data = new(GetTaskListData)
  36. return resp
  37. }