task_script.go 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_b_api/model/gorm_model"
  5. )
  6. type TaskScriptListRequest 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. ScriptStatus string `json:"script_status"` // 稿件状态
  13. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  14. }
  15. type TaskScriptPreview 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. Submit string `json:"script_upload_time"` //创建时间
  22. Title string `json:"title"` //脚本标题
  23. Content string `json:"content"` //脚本内容
  24. ReviseOpinion string `json:"revise_opinion"` //审稿意见
  25. }
  26. type TaskScriptInfo struct {
  27. TaskID int `json:"task_id"` // 任务ID
  28. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  29. FansCount string `json:"fans_count"` // 粉丝数
  30. RecruitStrategyID int `json:"recruit_strategy_id"`
  31. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  32. ScriptId int `json:"script_id"` //脚本ID
  33. Title string `json:"title"` //脚本标题
  34. Content string `json:"content"` //脚本内容
  35. ReviseOpinion string `json:"revise_opinion"` //审稿意见
  36. CreateAt time.Time `json:"create_at"` //创建时间
  37. SubmitAt time.Time `json:"submit_at"` // 提交时间
  38. AgreeAt time.Time `json:"agree_at"` //同意时间
  39. RejectAt time.Time `json:"reject_at"` //拒绝时间
  40. IsReview int `json:"is_review"` //是否审核
  41. }
  42. type TaskScript struct {
  43. Talent gorm_model.YoungeeTaskInfo
  44. Script gorm_model.YounggeeScriptInfo
  45. //Account gorm_model.YoungeePlatformAccountInfo
  46. }
  47. type TaskSketch struct {
  48. Talent gorm_model.YoungeeTaskInfo
  49. Sketch gorm_model.YounggeeSketchInfo
  50. //Account gorm_model.YoungeePlatformAccountInfo
  51. }
  52. type TaskScriptListData struct {
  53. TaskScriptPreview []*TaskScriptPreview `json:"project_script_pre_view"`
  54. Total string `json:"total"`
  55. }
  56. func NewTaskScriptListRequest() *TaskScriptListRequest {
  57. return new(TaskScriptListRequest)
  58. }
  59. func NewTaskScriptListResponse() *CommonResponse {
  60. resp := new(CommonResponse)
  61. resp.Data = new(ProjectTaskListData)
  62. return resp
  63. }