gettasklist.go 2.1 KB

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