gettasklist.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. EnterPriseId string `json:"enterprise_id"`
  10. SortField []string `json:"sort_field,omitempty"`
  11. SortOrder []string `json:"sort_order,omitempty"`
  12. }
  13. type GetTaskListData struct {
  14. TaskList []*TaskInfo `json:"task_list"`
  15. Total string `json:"total"`
  16. }
  17. type TaskInfo struct {
  18. TaskId string `json:"task_id"`
  19. ProjectId string `json:"project_id"`
  20. TalentId string `json:"talent_id"`
  21. FansNum int `json:"fans_num"`
  22. DraftFee float64 `json:"draft_fee"`
  23. FeeFrom int `json:"fee_from"`
  24. TaskStage int `json:"task_stage"`
  25. Voteavg int `json:"vote_avg"`
  26. Commentavg int `json:"commit_avg"`
  27. CollectNum int `json:"collect_num"`
  28. CurrentDefaultType int `json:"current_default_type"`
  29. From int `json:"from"` //1公海,2服务商
  30. SType int `json:"s_type"` //1个人,2机构
  31. SName string `json:"sname"`
  32. Boperator string `json:"b_operator"`
  33. //SettleAmount float64 `json:"settle_amount"`
  34. CreateAt string `json:"create_time"`
  35. ISCoop int `json:"is_coop"`
  36. NickName string `json:"nick_name"`
  37. Gender string `json:"gender"`
  38. HeadUrl string `json:"head_url"`
  39. City string `json:"city"`
  40. Sprojectid int `json:"sprojectid"`
  41. }
  42. func NewGetTaskListRequest() *GetTaskListRequest {
  43. return new(GetTaskListRequest)
  44. }
  45. func NewGetTaskListResponse() *CommonResponse {
  46. resp := new(CommonResponse)
  47. resp.Data = new(GetTaskListData)
  48. return resp
  49. }