task_data.go 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_b_api/model/gorm_model"
  5. )
  6. type TaskDataListRequest struct {
  7. PageSize int64 `json:"page_size"`
  8. PageNum int64 `json:"page_num"`
  9. ProjectId string `json:"project_id"` // 项目ID
  10. TaskId string `json:"task_id"` // 任务ID
  11. StrategyId string `json:"strategy_id"` // 策略ID
  12. DataStatus string `json:"data_status"` // 稿件状态
  13. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  14. }
  15. type TaskDataPreview struct {
  16. TaskID string `json:"task_id"` // 任务ID
  17. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  18. FansCount string `json:"fans_count"` // 粉丝数
  19. RecruitStrategyID string `json:"recruit_strategy_id"` // 招募策略ID
  20. StrategyID string `json:"strategy_id"` // 报名选择的招募策略id
  21. PlayNumber int `json:"play_number"` // 播放量/阅读量
  22. LikeNumber int `json:"like_number"` // 点赞数
  23. CommentNumber int `json:"comment_number"` // 评论数
  24. CollectNumber int `json:"collect_number"` // 收藏数
  25. LinkUrl string `json:"link_url"` // 上传链接url
  26. PhotoUrl string `json:"photo_url"` // 数据截图url
  27. AllPayment float64 `json:"all_payment"` // 企业支付
  28. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  29. SubmitAt string `json:"submit_at"` // 提交时间
  30. AgreeAt string `json:"agree_at"` // 同意时间
  31. ReviseOpinion string `json:"revise_opinion"` // 审稿意见
  32. }
  33. type TaskDataInfo struct {
  34. TaskID string `json:"task_id"` // 任务ID
  35. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  36. FansCount string `json:"fans_count"` // 粉丝数
  37. RecruitStrategyID int `json:"recruit_strategy_id"` // 招募策略ID
  38. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  39. DataId int `json:"data_id"` // 数据ID
  40. PlayNumber int `json:"play_number"` // 播放量/阅读量
  41. LikeNumber int `json:"like_number"` // 点赞数
  42. CommentNumber int `json:"comment_number"` // 评论数
  43. CollectNumber int `json:"collect_number"` // 收藏数
  44. LinkUrl string `json:"link_url"` // 上传链接url
  45. PhotoUrl string `json:"photo_url"` // 数据截图url
  46. AllPayment float64 `json:"all_payment"` // 企业支付
  47. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  48. ReviseOpinion string `json:"revise_opinion"` // 审稿意见
  49. CreateAt time.Time `json:"create_at"` // 创建时间
  50. SubmitAt time.Time `json:"submit_at"` // 提交时间
  51. AgreeAt time.Time `json:"agree_at"` // 同意时间
  52. RejectAt time.Time `json:"reject_at"` // 拒绝时间
  53. IsReview int `json:"is_review"` // 是否审核
  54. }
  55. type TaskData struct {
  56. Link gorm_model.YounggeeLinkInfo
  57. Talent gorm_model.YoungeeTaskInfo
  58. Data gorm_model.YounggeeDataInfo
  59. }
  60. type TaskDataListData struct {
  61. TaskDataPreview []*TaskDataPreview `json:"project_data_pre_view"`
  62. Total string `json:"total"`
  63. }
  64. func NewTaskDataListRequest() *TaskDataListRequest {
  65. return new(TaskDataListRequest)
  66. }
  67. func NewTaskDataListResponse() *CommonResponse {
  68. resp := new(CommonResponse)
  69. resp.Data = new(ProjectTaskListData)
  70. return resp
  71. }