report.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package response
  2. import (
  3. "eta/eta_mini_bridge/models"
  4. "github.com/rdlucklib/rdluck_tools/paging"
  5. )
  6. type ReportListResp struct {
  7. List []*models.ReportList
  8. Paging *paging.PagingItem
  9. }
  10. type ReportPushListResp struct {
  11. List []*models.ReportPushView
  12. Paging *paging.PagingItem
  13. }
  14. // type ReportDetailResp struct {
  15. // Report *models.ReportDetail `description:"报告"`
  16. // Classify *models.ClassifyDetail `description:"对应专栏"`
  17. // }
  18. type ReportDetailResp struct {
  19. Report *models.ReportDetail `description:"报告"`
  20. Status int `description:"报告状态"`
  21. }
  22. type ReportSearchResp struct {
  23. Paging *paging.PagingItem
  24. List []*models.ReportCollectListItem
  25. }
  26. type EsReportItem struct {
  27. ReportPdfId int `description:"pdf文件id"`
  28. PdfUrl string `description:"pdf文件URL"`
  29. Author string `description:"作者"`
  30. BodyContent string `description:"内容"`
  31. Categories string `description:"品种名称"`
  32. ClassifyIdFirst int `description:"一级分类id"`
  33. ClassifyNameFirst string `description:"一级分类名称"`
  34. ClassifyIdSecond int `description:"二级分类id"`
  35. ClassifyNameSecond string `description:"二级分类名称"`
  36. PublishState int `description:"1:未发布,2:已发布"`
  37. State int `description:"pdf报告:1:已发布,2:未发布"`
  38. PublishTime string `description:"发布时间"`
  39. ReportChapterId int `description:"报告章节Id"`
  40. ReportId int `description:"报告Id"`
  41. Title string `description:"标题"`
  42. Abstract string `description:"摘要"`
  43. StageStr string `description:"期数"`
  44. Stage int `description:"pdf期数"`
  45. }