history.go 526 B

123456789101112131415161718192021222324
  1. package model
  2. // SearchPage page struct from search
  3. type SearchPage struct {
  4. Num int64 `json:"num"`
  5. Size int64 `json:"size"`
  6. Total int64 `json:"total"`
  7. }
  8. // SearchHistoryResult history dm from search
  9. type SearchHistoryResult struct {
  10. Page *SearchPage `json:"page"`
  11. Result []*struct {
  12. ID int64 `json:"id"`
  13. } `json:"result"`
  14. }
  15. // SearchHistoryIdxResult history date index
  16. type SearchHistoryIdxResult struct {
  17. Page *SearchPage `json:"page"`
  18. Result []*struct {
  19. Date string `json:"date"`
  20. } `json:"result"`
  21. }