gettasklist.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package http_model
  2. import "time"
  3. type GetTaskListRequest struct {
  4. PageSize int `json:"page_size"`
  5. PageNum int `json:"page_num"`
  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. }
  12. type GetTaskListData struct {
  13. TaskList []*TaskInfo `json:"task_list"`
  14. Total string `json:"total"`
  15. }
  16. type TaskInfo struct {
  17. TaskId string `json:"task_id"`
  18. ProjectId string `json:"project_id"`
  19. TalentId string `json:"talent_id"`
  20. FansNum int `json:"fans_num"`
  21. DraftFee float64 `json:"draft_fee"`
  22. FeeFrom int `json:"fee_from"`
  23. TaskStage int `json:"task_stage"`
  24. Voteavg int `json:"vote_avg"`
  25. Commentavg int `json:"commit_avg"`
  26. CurrentDefaultType int `json:"current_default_type"`
  27. From int `json:"from"` //1公海,2服务商
  28. SType int `json:"s_type"` //1个人,2机构
  29. Boperator string `json:"b_operator"`
  30. //SettleAmount float64 `json:"settle_amount"`
  31. CreateAt time.Time `json:"create_time"`
  32. ISCoop int `json:"is_coop"`
  33. NickName string `json:"nick_name"`
  34. HeadUrl string `json:"head_url"`
  35. City string `json:"city"`
  36. Sprojectid int `json:"sprojectid"`
  37. }
  38. func NewGetTaskListRequest() *GetTaskListRequest {
  39. return new(GetTaskListRequest)
  40. }
  41. func NewGetTaskListResponse() *CommonResponse {
  42. resp := new(CommonResponse)
  43. resp.Data = new(GetTaskListData)
  44. return resp
  45. }