task_link.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_m_api/model/gorm_model"
  5. )
  6. type TaskLinkListRequest 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. StrategyIds string `json:"strategy_ids"` // 策略ID
  12. LinkStatus string `json:"link_status"` // 稿件状态
  13. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  14. }
  15. type TaskLinkPreview 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. LinkUrl string `json:"link_url"` // 上传链接url
  22. PhotoUrl string `json:"photo_url"` // 上传截图url
  23. Submit string `json:"link_upload_time"` // 创建时间
  24. AgreeAt string `json:"agree_at"` // 同意时间
  25. ReviseOpinion string `json:"revise_opinion"` // 审稿意见
  26. }
  27. type TaskLinkInfo struct {
  28. TaskID int `json:"task_id"` // 任务ID
  29. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  30. FansCount string `json:"fans_count"` // 粉丝数
  31. RecruitStrategyID int `json:"recruit_strategy_id"`
  32. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  33. LinkId int `json:"link_id"` // 链接ID
  34. LinkUrl string `json:"link_url"` // 上传链接url
  35. PhotoUrl string `json:"photo_url"` // 上传截图url
  36. ReviseOpinion string `json:"revise_opinion"` // 审稿意见
  37. CreateAt time.Time `json:"create_at"` // 创建时间
  38. SubmitAt time.Time `json:"submit_at"` // 提交时间
  39. AgreeAt time.Time `json:"agree_at"` // 同意时间
  40. RejectAt time.Time `json:"reject_at"` // 拒绝时间
  41. IsReview int `json:"is_review"` // 是否审核
  42. }
  43. type TaskLink struct {
  44. Talent gorm_model.YoungeeTaskInfo
  45. Link gorm_model.YounggeeLinkInfo
  46. }
  47. type TaskLinkListData struct {
  48. TaskLinkPreview []*TaskLinkPreview `json:"project_link_pre_view"`
  49. Total string `json:"total"`
  50. }
  51. func NewTaskLinkListRequest() *TaskLinkListRequest {
  52. return new(TaskLinkListRequest)
  53. }
  54. func NewTaskLinkListResponse() *CommonResponse {
  55. resp := new(CommonResponse)
  56. resp.Data = new(ProjectTaskListData)
  57. return resp
  58. }