report.go 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package response
  2. import (
  3. "eta/eta_mini_api/models"
  4. "time"
  5. "github.com/rdlucklib/rdluck_tools/paging"
  6. )
  7. type ReportList struct {
  8. List []*models.ReportView
  9. Paging *paging.PagingItem
  10. }
  11. type ReportPushListResp struct {
  12. List []*models.ReportPushView
  13. Paging *paging.PagingItem
  14. }
  15. type ReportResp[T any] struct {
  16. Ret int
  17. Data T
  18. Msg string
  19. ErrMsg string
  20. }
  21. type ReportDetailResp struct {
  22. Report *models.ReportDetail `description:"报告"`
  23. Status int `description:"报告状态"`
  24. IsCollect bool `description:"报告是否收藏"`
  25. IsSignIn bool `description:"是否登录"`
  26. }
  27. type ReportCollectListItem struct {
  28. ReportId int `description:"报告Id"`
  29. ReportChapterId int `description:"报告章节Id"`
  30. ClassifyIdFirst int `description:"一级分类id"`
  31. ClassifyNameFirst string `description:"一级分类名称"`
  32. ClassifyIdSecond int `description:"二级分类id"`
  33. ClassifyNameSecond string `description:"二级分类名称"`
  34. ClassifyIdThird int `description:"三级分类id"`
  35. ClassifyNameThird string `description:"三级分类名称"`
  36. ReportChapterTypeId int `decription:"报告章节类型id"`
  37. PublishTime time.Time `description:"发布时间"`
  38. Title string `description:"标题"`
  39. ContentSub string `description:"内容前两个章节"`
  40. Abstract string `description:"摘要"`
  41. Stage string `description:"期数"`
  42. Author string `description:"作者"`
  43. PdfUrl string `description:"pdf文件url"`
  44. ReportType int `description:"报告类型:1:eta报告,2:小程序pdf报告"`
  45. }
  46. type ReportSearchListView struct {
  47. ReportId int `description:"报告Id"`
  48. ReportChapterId int `description:"报告章节Id"`
  49. ClassifyIdFirst int `description:"一级分类id"`
  50. ClassifyNameFirst string `description:"一级分类名称"`
  51. ClassifyIdSecond int `description:"二级分类id"`
  52. ClassifyNameSecond string `description:"二级分类名称"`
  53. ClassifyIdThird int `description:"三级分类id"`
  54. ClassifyNameThird string `description:"三级分类名称"`
  55. ReportChapterTypeId int `decription:"报告章节类型id"`
  56. PublishTime string `description:"发布时间"`
  57. Title string `description:"标题"`
  58. ContentSub string `description:"内容前两个章节"`
  59. Abstract string `description:"摘要"`
  60. Stage string `description:"期数"`
  61. Author string `description:"作者"`
  62. PdfUrl string `description:"pdf文件url"`
  63. ReportType int `description:"报告类型:1:eta报告,2:小程序pdf报告"`
  64. }
  65. type ReportSearchResp struct {
  66. Paging *paging.PagingItem
  67. List []*ReportCollectListItem
  68. }
  69. type ReportSearchViewResp struct {
  70. Paging *paging.PagingItem
  71. List []*ReportSearchListView
  72. }
  73. type ReportPdfResp struct {
  74. Paging *paging.PagingItem
  75. List []*models.ReportPdf
  76. }
  77. type ReportPdfDetailResp struct {
  78. Report *models.ReportPdfView `description:"报告"`
  79. Status int `description:"报告状态"`
  80. }