project_taskList.go 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package http_model
  2. import (
  3. "time"
  4. )
  5. type ProjectTaskListRequest struct {
  6. PageSize int64 `json:"page_size"`
  7. PageNum int64 `json:"page_num"`
  8. ProjectId string `json:"project_id"` // 种草任务ID
  9. TaskId string `json:"task_id"` // 任务ID
  10. StrategyId string `json:"strategy_id"` // 策略ID
  11. TaskStatus string `json:"task_status"` // 任务状态
  12. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  13. SProjectId int `json:"s_project_id"` // 服务商种草任务ID
  14. SupplierStatus int `json:"supplier_status"` // 服务商任务状态 0表示达人来源非服务商 1待选 2已选 3落选
  15. }
  16. type ProjectTaskPreview struct {
  17. TaskId string `json:"task_id"` // 任务ID
  18. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  19. FansCount string `json:"fans_count"` // 粉丝数
  20. AvatarUrl string `json:"avatar_url"` // 达人头像url
  21. Location string `json:"location"` // 达人所在地区
  22. Gender string `json:"gender"` // 达人性别
  23. ServiceCharge float64 `json:"service_charge"` // 服务费
  24. DraftFee float64 `json:"draft_fee"` // 达人稿费
  25. SupportFee float64 `json:"support_fee"` // 提报价格
  26. StrategyId string `json:"strategy_id"` // 报名选择的招募策略id
  27. TaskStatus string `json:"task_status"` // 任务状态
  28. CreateDate string `json:"create_date"` // 创建时间
  29. SelectDate string `json:"select_date"` // 商家同意时间
  30. DeliveryDate string `json:"delivery_date"` // 发货时间
  31. SignedTime string `json:"signed_time"` // 收货时间
  32. CurBreakAt string `json:"cur_break_at"` // 当前阶段结束时间
  33. FansNum int `json:"fans_num"` // 粉丝数
  34. VoteAvg int `json:"vote_avg"` // 平均点赞数
  35. CommitAvg int `json:"commit_avg"` // 平均评论数
  36. BOperator string `json:"b_operator"` // 商家确定达人操作人ID
  37. BOperatorType int `json:"b_operator_type"` // 商家操作人类型,1商家用户,2商家子账号,3管理后台
  38. SOperator int `json:"s_operator"` // 服务商确定达人操作人ID
  39. SOperatorType int `json:"s_operator_type"` // 服务商操作人类型,1服务商用户,2服务商子账号,3管理后台
  40. TaskStage int `json:"task_stage"` // 任务状态
  41. }
  42. type ProjectTaskInfo struct {
  43. TaskID string `json:"task_id"` // 任务id
  44. PlatformNickname string `json:"platform_nickname"` // 在平台上的昵称
  45. FansCount string `json:"fans_count"` // 粉丝数
  46. HomePageCaptureUrl string `json:"home_page_capture_url"` // 主页截图链接
  47. AvatarUrl string `json:"avatar_url"` // 达人头像url
  48. Location string `json:"location"` // 达人所在地区
  49. Gender string `json:"gender"` // 达人性别
  50. TaskStage int `json:"task_stage"` // 任务状态
  51. ServiceCharge float64 `json:"service_charge"` // 服务费
  52. DraftFee float64 `json:"draft_fee"` // 达人稿费
  53. SupportFee float64 `json:"support_fee"` // 提报价格
  54. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  55. AllPayment float64 `json:"all_payment"` // 企业支付
  56. TaskReward float64 `json:"task_reward"` // 任务奖励金额
  57. HomePageUrl string `json:"home_page_url"` // 主页链接
  58. TaskStatus string `json:"task_status"` // 任务状态 1待选 2已选 3落选
  59. CreateDate time.Time `json:"create_date"` // 创建时间
  60. FansNum int `json:"fans_num"` // 粉丝数
  61. VoteAvg int `json:"vote_Avg"` // 平均点赞数
  62. CommitAvg int `json:"commit_avg"` // 平均评论数
  63. BOperator string `json:"b_operator"` // 商家确定达人操作人ID
  64. BOperatorType int `json:"b_operator_type"` // 商家操作人类型,1商家用户,2商家子账号,3管理后台
  65. SOperator int `json:"s_operator"` // 服务商确定达人操作人ID
  66. SOperatorType int `json:"s_operator_type"` // 服务商操作人类型,1服务商用户,2服务商子账号,3管理后台
  67. }
  68. type ProjectTaskListData struct {
  69. ProjectTaskPreview []*ProjectTaskPreview `json:"project_task_pre_view"` // Task
  70. RecruitNum int `json:"recruit_num"` // 执行人数
  71. QuitNum int `json:"quit_num"` // 解约人数
  72. SettleNum int `json:"settle_num"` // 结算人数
  73. ServiceChargeActual float64 `json:"service_charge_actual"` // 服务费总额
  74. ServiceChargeSettle float64 `json:"service_charge_settle"` // 服务费已结算
  75. Total string `json:"total"`
  76. }
  77. func NewProjectTaskListRequest() *ProjectTaskListRequest {
  78. return new(ProjectTaskListRequest)
  79. }
  80. func NewProjectTaskListResponse() *CommonResponse {
  81. resp := new(CommonResponse)
  82. resp.Data = new(ProjectTaskListData)
  83. return resp
  84. }