task_sketch.go 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 AddLocalTaskBookRequest struct {
  14. TaskId string `orm:"task_id" json:"task_id"` // 任务id
  15. Day *gtime.Time `orm:"task_id" json:"day"` // 预计探店日期
  16. Time *gtime.Time `orm:"time" json:"time"` // 预计探店时间
  17. }
  18. type AddLocalTaskPhotoRequest struct {
  19. TaskId string `orm:"task_id" json:"task_id"` // 任务id
  20. PhotoUrl string `orm:"photo_url" json:"photo_url"` // 图文的url列表
  21. }
  22. type TaskSketchInfo struct {
  23. gmeta.Meta `orm:"table:younggee_sketch_info"`
  24. SketchId int `orm:"sketch_id,primary" json:"sketch_id"` // 初稿id
  25. TaskId string `orm:"task_id" json:"task_id"` // 任务id
  26. Title string `orm:"title" json:"title"` // 标题
  27. Type int `orm:"type" json:"type"` // 初稿形式,1为图片,2为视频
  28. Content string `orm:"content" json:"content"` // 正文
  29. ReviseOpinion string `orm:"revise_opinion" json:"revise_opinion"` // 反馈意见
  30. IsSubmit int `orm:"is_submit" json:"is_submit"` // 是否提交
  31. IsReview int `orm:"is_review" json:"is_review"` // 是否审核
  32. IsOk int `orm:"is_ok" json:"is_ok"` // 是否合格
  33. CreateAt *gtime.Time `orm:"create_at" json:"create_at"` // 创建时间
  34. AgreeAt *gtime.Time `orm:"agree_at" json:"agree_at"` // 同意时间
  35. RejectAt *gtime.Time `orm:"reject_at" json:"reject_at"` // 驳回时间
  36. SubmitAt *gtime.Time `orm:"submit_at" json:"submit_at"` // 提交时间
  37. AutoAgreeAt *gtime.Time `orm:"auto_agree_at" json:"auto_agree_at"` // 初稿自动审核时间
  38. AutoLinkBreakAt *gtime.Time `orm:"auto_link_break_at" json:"auto_link_break_at"` // 链接违约自动处理时间
  39. AutoSketchBreakAt *gtime.Time `orm:"auto_sketch_break_at" json:"auto_sketch_break_at"` // 初稿违约自动处理时间
  40. Photo []*YounggeeSketchPhoto `orm:"with:sketch_id=sketch_id"`
  41. }
  42. type LocalTaskBookInfo struct {
  43. gmeta.Meta `orm:"table:younggee_book_info"`
  44. BookId int `orm:"book_id,primary" json:"sketch_id"` // 初稿id
  45. TaskId string `orm:"task_id" json:"task_id"` // 任务id
  46. Day *gtime.Time `orm:"day" json:"day"` // 标题
  47. Time *gtime.Time `orm:"time" json:"time"` // 标题
  48. ReviseOpinion string `orm:"revise_opinion" json:"revise_opinion"` // 反馈意见
  49. IsSubmit int `orm:"is_submit" json:"is_submit"` // 是否提交
  50. IsReview int `orm:"is_review" json:"is_review"` // 是否审核
  51. IsOk int `orm:"is_ok" json:"is_ok"` // 是否合格
  52. CreateAt *gtime.Time `orm:"create_at" json:"create_at"` // 创建时间
  53. AgreeAt *gtime.Time `orm:"agree_at" json:"agree_at"` // 同意时间
  54. RejectAt *gtime.Time `orm:"reject_at" json:"reject_at"` // 驳回时间
  55. SubmitAt *gtime.Time `orm:"submit_at" json:"submit_at"` // 提交时间
  56. AutoAgreeAt *gtime.Time `orm:"auto_agree_at" json:"auto_agree_at"` // 初稿自动审核时间
  57. AutoLinkBreakAt *gtime.Time `orm:"auto_link_break_at" json:"auto_link_break_at"` // 链接违约自动处理时间
  58. AutoSketchBreakAt *gtime.Time `orm:"auto_sketch_break_at" json:"auto_sketch_break_at"` // 初稿违约自动处理时间
  59. Photo []*YounggeeBookPhoto `orm:"with:book_id=book_id"`
  60. }
  61. type YounggeeSketchPhoto struct {
  62. gmeta.Meta `orm:"table:younggee_sketch_photo"`
  63. Id int `orm:"id,primary" json:"id"` // 脚本id
  64. SketchId int `orm:"sketch_id" json:"sketch_id"` //
  65. PhotoUrl string `orm:"photo_url" json:"photo_url"` //
  66. PhotoUid string `orm:"photo_uid" json:"photo_uid"` //
  67. Symbol int `orm:"symbol" json:"symbol"` // 1是图片,2是视频
  68. CreateAt *gtime.Time `orm:"create_at" json:"create_at"` //
  69. }
  70. type YounggeeBookPhoto struct {
  71. gmeta.Meta `orm:"table:younggee_book_photo"`
  72. Id int `orm:"id,primary" json:"id"` //
  73. BookId int `orm:"book_id" json:"book_id"` //探店id
  74. TaskId string `orm:"task_id" json:"task_id"`
  75. PhotoUrl string `orm:"photo_url" json:"photo_url"` //
  76. PhotoUid string `orm:"photo_uid" json:"photo_uid"` //
  77. CreateAt *gtime.Time `orm:"create_at" json:"create_at"` //
  78. }