task_finish.go 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_b_api/model/gorm_model"
  5. )
  6. type TaskFinishListRequest 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 TaskFinishPreview 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. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  27. SubmitAt string `json:"submit_at"` // 提交时间
  28. LinkUrl string `json:"link_url"` // 上传链接url
  29. }
  30. type TaskFinishInfo struct {
  31. TaskID string `json:"task_id"` // 任务ID
  32. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  33. FansCount string `json:"fans_count"` // 粉丝数
  34. RecruitStrategyID int `json:"recruit_strategy_id"` // 招募策略ID
  35. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  36. DataId int `json:"data_id"` // 数据ID
  37. PlayNumber int `json:"play_number"` // 播放量/阅读量
  38. LikeNumber int `json:"like_number"` // 点赞数
  39. CommentNumber int `json:"comment_number"` // 评论数
  40. CollectNumber int `json:"collect_number"` // 收藏数
  41. PhotoUrl string `json:"photo_url"` // 数据截图url
  42. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  43. LinkUrl string `json:"link_url"` // 上传链接url
  44. SubmitAt time.Time `json:"submit_at"` // 提交时间
  45. }
  46. type TaskFinish struct {
  47. Talent gorm_model.YoungeeTaskInfo
  48. Data gorm_model.YounggeeDataInfo
  49. Link gorm_model.YounggeeLinkInfo
  50. }
  51. type TaskFinishListData struct {
  52. TaskFinishPreview []*TaskFinishPreview `json:"project_finish_pre_view"`
  53. Total string `json:"total"`
  54. }
  55. func NewTaskFinishListRequest() *TaskFinishListRequest {
  56. return new(TaskFinishListRequest)
  57. }
  58. func NewTaskFinishListResponse() *CommonResponse {
  59. resp := new(CommonResponse)
  60. resp.Data = new(ProjectTaskListData)
  61. return resp
  62. }