sear_inter.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. //SearInter reprensents the search intervene
  6. type SearInter struct {
  7. ID int64 `json:"id" params:"id"`
  8. Searchword string `json:"searchword" params:"searchword"`
  9. Rank int64 `json:"rank" params:"rank"`
  10. Tag string `json:"tag" params:"tag"`
  11. Deleted int8 `json:"deleted"`
  12. Ctime time.Time `json:"ctime"`
  13. Mtime time.Time `json:"mtime"`
  14. }
  15. // TableName gives the table name of search intervene
  16. func (*SearInter) TableName() string {
  17. return "search_intervene"
  18. }
  19. // SearInterPager search intervene pager
  20. type SearInterPager struct {
  21. TotalCount int `json:"total_count"`
  22. Pn int `json:"pn"`
  23. Ps int `json:"ps"`
  24. Items []*SearInter `json:"items"`
  25. PubState int8
  26. PubTime string
  27. }
  28. //OutSearchInter output search intervene
  29. type OutSearchInter struct {
  30. Keyword string `json:"keyword"`
  31. Status string `json:"status"`
  32. }
  33. //PublishStatus search intervene publish status state 0-unPublish 1-publish
  34. type PublishStatus struct {
  35. Time string
  36. State int8
  37. }