getlocaltasklist.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package http_model
  2. import "time"
  3. type GetLocalTaskListRequest struct {
  4. PageSize int `json:"page_size"`
  5. PageNum int `json:"page_num"`
  6. TalentFromList string `json:"talent_from_list"`
  7. FeeFrom *int `json:"fee_from,omitempty"`
  8. Type *int `json:"type,omitempty"` // 查询类型,1、2分别表示达人来源于公海(商家端),服务商
  9. ProjectId string `json:"project_id"`
  10. CoopType int `json:"coop_type"` //1未处理,2同意,3拒绝
  11. EnterPriseId string `json:"enterprise_id"`
  12. }
  13. type GetLocalTaskListData struct {
  14. TaskList []*LocaLTaskInfo `json:"task_list"`
  15. Total string `json:"total"`
  16. }
  17. type LocaLTaskInfo 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. CurrentDefaultType int `json:"current_default_type"`
  28. From int `json:"from"` //1公海,2服务商
  29. SType int `json:"s_type"` //1个人,2机构
  30. Boperator string `json:"b_operator"`
  31. //SettleAmount float64 `json:"settle_amount"`
  32. CreateAt time.Time `json:"create_time"`
  33. ISCoop int `json:"is_coop"`
  34. NickName string `json:"nick_name"`
  35. HeadUrl string `json:"head_url"`
  36. Sprojectid int `json:"sprojectid"`
  37. City string `json:"city"`
  38. }
  39. func NewGetLocalTaskListRequest() *GetLocalTaskListRequest {
  40. return new(GetLocalTaskListRequest)
  41. }
  42. func NewGetLocalTaskListResponse() *CommonResponse {
  43. resp := new(CommonResponse)
  44. resp.Data = new(GetLocalTaskListData)
  45. return resp
  46. }