archive.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package model
  2. import "strconv"
  3. // ArchiveCheckParams search params.
  4. type ArchiveCheckParams struct {
  5. Bsp *BasicSearchParams
  6. Aids []int64 `form:"aids,split" params:"aids"`
  7. TypeIds []int64 `form:"typeids,split" params:"typeids"`
  8. States []int64 `form:"states,split" params:"states"`
  9. Attrs []int64 `form:"attrs,split" params:"attrs"`
  10. DurationFrom int64 `form:"duration_from" params:"duration_from"`
  11. DurationTo int64 `form:"duration_to" params:"duration_to"`
  12. Mids []int64 `form:"mids,split" params:"mids"`
  13. MidFrom int64 `form:"mid_from" params:"mid_from"`
  14. MidTo int64 `form:"mid_to" params:"mid_to"`
  15. AllKW int `form:"all_kw" params:"all_kw" default:"0"`
  16. TimeFrom string `form:"time_from" params:"time_from"`
  17. TimeTo string `form:"time_to" params:"time_to"`
  18. Time string `form:"time" params:"time"`
  19. FromIP string `form:"from_ip" params:"from_ip"`
  20. }
  21. // VideoParams search video
  22. type VideoParams struct {
  23. Bsp *BasicSearchParams
  24. VIDs []int64 `form:"vids,split" params:"vids"`
  25. AIDs []int64 `form:"aids,split" params:"aids"`
  26. CIDs []int64 `form:"cids,split" params:"cids"`
  27. TIDs []int64 `form:"tids,split" params:"tids"`
  28. FileNames []string `form:"filename,split" params:"filename"`
  29. TagID int64 `form:"tag_id" params:"tag_id"`
  30. Status []int64 `form:"status,split" params:"status"`
  31. XCodeState []int64 `form:"xcode_state,split" params:"xcode_state"`
  32. UserType int `form:"user_type" params:"user_type"`
  33. // archive
  34. RelationStates []int64 `form:"relation_state,split" params:"relation_state"`
  35. ArcMids []int64 `form:"arc_mids,split" params:"arc_mids"`
  36. DurationFrom int `form:"duration_from" params:"duration_from"`
  37. DurationTo int `form:"duration_to" params:"duration_to"`
  38. // other
  39. OrderType int `form:"order_type" params:"order_type"`
  40. }
  41. // TaskQa .
  42. type TaskQa struct {
  43. Bsp *BasicSearchParams
  44. Ids []int64 `form:"ids,split" params:"ids"`
  45. TaskIds []string `form:"task_ids,split" params:"task_ids"`
  46. Uids []string `form:"uids,split" params:"uids"`
  47. ArcTagIds []string `form:"arc_tagids,split" params:"arc_tagids"`
  48. AuditTagIds []int64 `form:"audit_tagids,split" params:"audit_tagids"`
  49. UpGroups []string `form:"up_groups,split" params:"up_groups"`
  50. ArcTitles []string `form:"arc_titles,split" params:"arc_titles"`
  51. ArcTypeIds []string `form:"arc_typeids,split" params:"arc_typeids"`
  52. States []string `form:"states,split" params:"states"`
  53. AuditStatuses []string `form:"audit_statuses,split" params:"audit_statuses"`
  54. FansFrom string `form:"fans_from" params:"fans_from"`
  55. FansTo string `form:"fans_to" params:"fans_to"`
  56. CtimeFrom string `form:"ctime_from" params:"ctime_from"`
  57. CtimeTo string `form:"ctime_to" params:"ctime_to"`
  58. FtimeFrom string `form:"ftime_from" params:"ftime_from"`
  59. FtimeTo string `form:"ftime_to" params:"ftime_to"`
  60. }
  61. // ArchiveCommerce .
  62. type ArchiveCommerce struct {
  63. Bsp *BasicSearchParams
  64. Ids []string `form:"ids,split" params:"ids"`
  65. PTypeIds []string `form:"ptypeids,split" params:"ptypeids"`
  66. TypeIds []string `form:"typeids,split" params:"typeids"`
  67. Mids []string `form:"mids,split" params:"mids"`
  68. States []string `form:"states,split" params:"states"`
  69. Copyrights []string `form:"copyrights,split" params:"copyrights"`
  70. OrderIds []string `form:"order_ids,split" params:"order_ids"`
  71. // 逻辑判断
  72. Action string `form:"action" params:"action"` // 获取一级分区列表、等其他定制查询
  73. IsOrder int `form:"is_order" params:"is_order" default:"-1"` //是否商单
  74. IsOriginal int `form:"is_original" params:"is_original" default:"-1"` //是否原创
  75. }
  76. // TaskQaFansParams .
  77. type TaskQaFansParams struct {
  78. ID int64 `json:"id"`
  79. Fans int64 `json:"fans"`
  80. }
  81. // IndexName .
  82. func (m *TaskQaFansParams) IndexName() string {
  83. return "task_qa"
  84. }
  85. // IndexType .
  86. func (m *TaskQaFansParams) IndexType() string {
  87. return "base"
  88. }
  89. // IndexID .
  90. func (m *TaskQaFansParams) IndexID() string {
  91. return strconv.FormatInt(m.ID, 10)
  92. }