task_sketch.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/os/gtime"
  4. "github.com/gogf/gf/util/gmeta"
  5. )
  6. type AddTaskSketchRequest struct {
  7. TaskId string `orm:"task_id" json:"task_id"` // 任务id
  8. Title string `orm:"title" json:"title"` // 标题
  9. Type int `orm:"type" json:"type"` // 初稿形式,1为图片,2为视频
  10. Content string `orm:"content" json:"content"` // 正文
  11. PhotoUrl string `orm:"photo_url" json:"photo_url"` // 视频或图文的url列表
  12. }
  13. type TaskSketchInfo struct {
  14. gmeta.Meta `orm:"table:younggee_sketch_info"`
  15. SketchId int `orm:"sketch_id,primary" json:"sketch_id"` // 初稿id
  16. TaskId string `orm:"task_id" json:"task_id"` // 任务id
  17. Title string `orm:"title" json:"title"` // 标题
  18. Type int `orm:"type" json:"type"` // 初稿形式,1为图片,2为视频
  19. Content string `orm:"content" json:"content"` // 正文
  20. ReviseOpinion string `orm:"revise_opinion" json:"revise_opinion"` // 反馈意见
  21. IsSubmit int `orm:"is_submit" json:"is_submit"` // 是否提交
  22. IsReview int `orm:"is_review" json:"is_review"` // 是否审核
  23. IsOk int `orm:"is_ok" json:"is_ok"` // 是否合格
  24. CreateAt *gtime.Time `orm:"create_at" json:"create_at"` // 创建时间
  25. AgreeAt *gtime.Time `orm:"agree_at" json:"agree_at"` // 同意时间
  26. RejectAt *gtime.Time `orm:"reject_at" json:"reject_at"` // 驳回时间
  27. SubmitAt *gtime.Time `orm:"submit_at" json:"submit_at"` // 提交时间
  28. AutoAgreeAt *gtime.Time `orm:"auto_agree_at" json:"auto_agree_at"` // 初稿自动审核时间
  29. AutoLinkBreakAt *gtime.Time `orm:"auto_link_break_at" json:"auto_link_break_at"` // 链接违约自动处理时间
  30. AutoSketchBreakAt *gtime.Time `orm:"auto_sketch_break_at" json:"auto_sketch_break_at"` // 初稿违约自动处理时间
  31. Photo []*YounggeeSketchPhoto `orm:"with:sketch_id=sketch_id"`
  32. }
  33. type YounggeeSketchPhoto struct {
  34. gmeta.Meta `orm:"table:younggee_sketch_photo"`
  35. Id int `orm:"id,primary" json:"id"` // 脚本id
  36. SketchId int `orm:"sketch_id" json:"sketch_id"` //
  37. PhotoUrl string `orm:"photo_url" json:"photo_url"` //
  38. PhotoUid string `orm:"photo_uid" json:"photo_uid"` //
  39. Symbol int `orm:"symbol" json:"symbol"` // 1是图片,2是视频
  40. CreateAt *gtime.Time `orm:"create_at" json:"create_at"` //
  41. }