pgc.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package model
  2. import "fmt"
  3. // PgcMediaParams .
  4. type PgcMediaParams struct {
  5. Bsp *BasicSearchParams
  6. MediaIds []int64 `form:"media_ids,split" params:"media_ids"`
  7. SeasonIds []int64 `form:"season_ids,split" params:"season_ids"`
  8. SeasonTypes []int64 `form:"season_types,split" params:"season_types"`
  9. StyleIds []int64 `form:"style_ids,split" params:"style_ids"`
  10. Status int `form:"status" params:"status" default:"-1000"`
  11. ReleaseDateFrom string `form:"release_date_from" params:"release_date_from"`
  12. ReleaseDateTo string `form:"release_date_to" params:"release_date_to"`
  13. SeasonIDFrom int `form:"season_id_from" params:"season_id_from"`
  14. SeasonIDTo int `form:"season_id_to" params:"season_id_to"`
  15. ProducerIds []int64 `form:"producer_ids,split" params:"producer_ids"`
  16. IsDeleted int `form:"is_deleted" params:"is_deleted" default:"0"`
  17. AreaIds []string `form:"area_ids,split" params:"area_ids"`
  18. ScoreFrom int `form:"score_from" params:"score_from"`
  19. ScoreTo int `form:"score_to" params:"score_to"`
  20. IsFinish string `form:"is_finish" params:"is_finish"`
  21. SeasonVersions []int64 `form:"season_versions,split" params:"season_versions"`
  22. SeasonStatuses []int64 `form:"season_statuses,split" params:"season_statuses"`
  23. PubTimeFrom string `form:"pub_time_from" params:"pub_time_from"`
  24. PubTimeTo string `form:"pub_time_to" params:"pub_time_to"`
  25. SeasonMonths []int64 `form:"season_months,split" params:"season_months"`
  26. LatestTimeFrom string `form:"latest_time_from" params:"latest_time_from"`
  27. LatestTimeTo string `form:"latest_time_to" params:"latest_time_to"`
  28. CopyrightInfos []string `form:"copyright_infos,split" params:"copyright_infos"`
  29. CTimeFrom string `form:"ctime_from" params:"ctime_from"`
  30. CTimeTo string `form:"ctime_to" params:"ctime_to"`
  31. MTimeFrom string `form:"mtime_from" params:"mtime_from"`
  32. MTimeTo string `form:"mtime_to" params:"mtime_to"`
  33. }
  34. // PgcMediaUptParams .
  35. type PgcMediaUptParams struct {
  36. MediaID int64 `json:"media_id"`
  37. Field map[string]interface{}
  38. }
  39. // IndexName .
  40. func (m *PgcMediaUptParams) IndexName() string {
  41. return "pgc_media"
  42. }
  43. // IndexType .
  44. func (m *PgcMediaUptParams) IndexType() string {
  45. return "base"
  46. }
  47. // IndexID .
  48. func (m *PgcMediaUptParams) IndexID() string {
  49. return fmt.Sprintf("%d", m.MediaID)
  50. }
  51. // PField .
  52. func (m *PgcMediaUptParams) PField() map[string]interface{} {
  53. return m.Field
  54. }