gettasklist.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. }
  11. type GetTaskListData struct {
  12. TaskList []*TaskInfo `json:"task_list"`
  13. Total string `json:"total"`
  14. }
  15. type TaskInfo struct {
  16. TaskId string `json:"task_id"`
  17. ProjectId string `json:"project_id"`
  18. TalentId string `json:"talent_id"`
  19. FansNum int `json:"fans_num"`
  20. DraftFee float64 `json:"draft_fee"`
  21. FeeFrom int `json:"fee_from"`
  22. TaskStage int `json:"task_stage"`
  23. Voteavg int `json:"vote_avg"`
  24. Commentavg int `json:"commit_avg"`
  25. CurrentDefaultType int `json:"current_default_type"`
  26. From int `json:"from"` //1公海,2服务商
  27. SType int `json:"s_type"` //1个人,2机构
  28. Boperator string `json:"b_operator"`
  29. SettleAmount float64 `json:"settle_amount"`
  30. CreateAt time.Time `json:"create_time"`
  31. }
  32. func NewGetTaskListRequest() *GetTaskListRequest {
  33. return new(GetTaskListRequest)
  34. }
  35. func NewGetTaskListResponse() *CommonResponse {
  36. resp := new(CommonResponse)
  37. resp.Data = new(GetTaskListData)
  38. return resp
  39. }