search.go 861 B

1234567891011121314151617181920212223242526272829303132
  1. package pgc
  2. import "go-common/library/time"
  3. // SearPgcCon is used for setting search pgc content
  4. type SearPgcCon struct {
  5. ID int `json:"id"`
  6. Category int `json:"category"`
  7. Cover string `json:"cover"`
  8. Title string `json:"title"`
  9. PlayTime time.Time `json:"pubtime"`
  10. Role string `json:"cv"`
  11. Staff string `json:"staff"`
  12. Desc string `json:"description"`
  13. }
  14. // SearUgcCon is used for setting search ugc content
  15. type SearUgcCon struct {
  16. AID int `json:"id"`
  17. Title string `json:"title"`
  18. Cover string `json:"cover"`
  19. Content string `json:"description"`
  20. Pubtime time.Time `json:"pubtime"`
  21. Typeid int `json:"category"`
  22. }
  23. // SearchSug represents the search suggestion unit
  24. type SearchSug struct {
  25. Term string `json:"term"`
  26. ID int `json:"id"`
  27. Type string `json:"type"`
  28. }