getlocaltasklist.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package http_model
  2. type GetLocalTaskListRequest struct {
  3. PageSize int `json:"page_size"`
  4. PageNum int `json:"page"`
  5. TalentFromList string `json:"talent_from_list"`
  6. FeeFrom *int `json:"fee_from,omitempty"`
  7. Type *int `json:"type,omitempty"` // 查询类型,1、2分别表示达人来源于公海(商家端),服务商
  8. ProjectId string `json:"project_id"`
  9. CoopType int `json:"coop_type"` //1未处理,2同意,3拒绝
  10. EnterPriseId string `json:"enterprise_id"`
  11. SortField []string `json:"sort_field,omitempty"`
  12. SortOrder []string `json:"sort_order,omitempty"`
  13. Others string `json:"others,omitempty"`
  14. }
  15. type GetLocalTaskListData struct {
  16. TaskList []*LocaLTaskInfo `json:"task_list"`
  17. Total string `json:"total"`
  18. }
  19. type LocaLTaskInfo struct {
  20. TaskId string `json:"task_id"`
  21. ProjectId string `json:"project_id"`
  22. TalentId string `json:"talent_id"`
  23. FansNum int `json:"fans_num"`
  24. DraftFee float64 `json:"draft_fee"`
  25. FeeFrom int `json:"fee_from"`
  26. TaskStage int `json:"task_stage"`
  27. Voteavg int `json:"vote_avg"`
  28. Commentavg int `json:"commit_avg"`
  29. CollectNum int `json:"collect_num"`
  30. CurrentDefaultType int `json:"current_default_type"`
  31. From int `json:"from"` //1公海,2服务商
  32. SType int `json:"s_type"` //1个人,2机构
  33. SName string `json:"sname"`
  34. Boperator string `json:"b_operator"`
  35. //SettleAmount float64 `json:"settle_amount"`
  36. CreateAt string `json:"create_time"`
  37. ISCoop int `json:"is_coop"`
  38. Gender string `json:"gender"`
  39. NickName string `json:"nick_name"`
  40. HeadUrl string `json:"head_url"`
  41. Sprojectid int `json:"sprojectid"`
  42. City string `json:"city"`
  43. ListTime string `json:"list_time"`
  44. StageIntro string `json:"stage_intro"`
  45. }
  46. func NewGetLocalTaskListRequest() *GetLocalTaskListRequest {
  47. return new(GetLocalTaskListRequest)
  48. }
  49. func NewGetLocalTaskListResponse() *CommonResponse {
  50. resp := new(CommonResponse)
  51. resp.Data = new(GetLocalTaskListData)
  52. return resp
  53. }