SpecialTaskScriptList.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_m_api/model/gorm_model"
  5. )
  6. type SpecialTaskScriptListRequest 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. ScriptStatus string `json:"script_status"` // 稿件状态
  12. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  13. }
  14. type SpecialTaskScriptPreview struct {
  15. TaskID string `json:"task_id"` // 任务ID
  16. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  17. FansCount string `json:"fans_count"` // 粉丝数
  18. Submit string `json:"script_upload_time"` //创建时间
  19. Title string `json:"title"` //脚本标题
  20. AgreeAt string `json:"agree_at"` //同意时间
  21. Content string `json:"content"` //脚本内容
  22. ReviseOpinion string `json:"revise_opinion"` //审稿意见
  23. }
  24. type SpecialTaskScriptInfo struct {
  25. TaskID string `json:"task_id"` // 任务ID
  26. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  27. FansCount string `json:"fans_count"` // 粉丝数
  28. ScriptId int `json:"script_id"` //脚本ID
  29. Title string `json:"title"` //脚本标题
  30. Content string `json:"content"` //脚本内容
  31. ReviseOpinion string `json:"revise_opinion"` //审稿意见
  32. CreateAt time.Time `json:"create_at"` //创建时间
  33. SubmitAt time.Time `json:"submit_at"` // 提交时间
  34. AgreeAt time.Time `json:"agree_at"` //同意时间
  35. RejectAt time.Time `json:"reject_at"` //拒绝时间
  36. IsReview int `json:"is_review"` //是否审核
  37. }
  38. type SpecialTaskScript struct {
  39. Talent gorm_model.YoungeeTaskInfo
  40. Script gorm_model.YounggeeScriptInfo
  41. }
  42. type SpecialTaskScriptListData struct {
  43. SpecialTaskScriptPreview []*SpecialTaskScriptPreview `json:"project_task_pre_view"`
  44. Total string `json:"total"`
  45. }
  46. func NewSpecialTaskScriptListRequest() *SpecialTaskScriptListRequest {
  47. return new(SpecialTaskScriptListRequest)
  48. }
  49. func NewSpecialTaskScriptListResponse() *CommonResponse {
  50. resp := new(CommonResponse)
  51. resp.Data = new(SpecialTaskScriptListData)
  52. return resp
  53. }