task_data.go 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_m_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. PhotoUrl string `json:"photo_url"` // 数据截图url
  26. AllPayment float64 `json:"all_payment"` // 企业支付
  27. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  28. Submit string `json:"submit_at"` // 提交时间
  29. AgreeAt string `json:"agree_at"` // 同意时间
  30. ReviseOpinion string `json:"revise_opinion"` // 审稿意见
  31. }
  32. type TaskDataInfo struct {
  33. TaskID int `json:"task_id"` // 任务ID
  34. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  35. FansCount string `json:"fans_count"` // 粉丝数
  36. RecruitStrategyID int `json:"recruit_strategy_id"` // 招募策略ID
  37. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  38. DataId int `json:"data_id"` // 数据ID
  39. PlayNumber int `json:"play_number"` // 播放量/阅读量
  40. LikeNumber int `json:"like_number"` // 点赞数
  41. CommentNumber int `json:"comment_number"` // 评论数
  42. CollectNumber int `json:"collect_number"` // 收藏数
  43. PhotoUrl string `json:"photo_url"` // 数据截图url
  44. AllPayment float64 `json:"all_payment"` // 企业支付
  45. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  46. ReviseOpinion string `json:"revise_opinion"` // 审稿意见
  47. CreateAt time.Time `json:"create_at"` // 创建时间
  48. SubmitAt time.Time `json:"submit_at"` // 提交时间
  49. AgreeAt time.Time `json:"agree_at"` // 同意时间
  50. RejectAt time.Time `json:"reject_at"` // 拒绝时间
  51. IsReview int `json:"is_review"` // 是否审核
  52. }
  53. type TaskData struct {
  54. Talent gorm_model.YoungeeTaskInfo
  55. Data gorm_model.YounggeeDataInfo
  56. }
  57. type TaskDataListData struct {
  58. TaskDataPreview []*TaskDataPreview `json:"project_data_pre_view"`
  59. Total string `json:"total"`
  60. }
  61. func NewTaskDataListRequest() *TaskDataListRequest {
  62. return new(TaskDataListRequest)
  63. }
  64. func NewTaskDataListResponse() *CommonResponse {
  65. resp := new(CommonResponse)
  66. resp.Data = new(ProjectTaskListData)
  67. return resp
  68. }