report.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.ReportList
  9. Paging *paging.PagingItem
  10. }
  11. type ReportResp[T any] struct {
  12. Ret int
  13. Data T
  14. Msg string
  15. ErrMsg string
  16. }
  17. type ReportDetailResp struct {
  18. Report *models.ReportDetail `description:"报告"`
  19. Status int `description:"报告状态"`
  20. }
  21. type ReportCollectListItem struct {
  22. ReportId int `description:"报告Id"`
  23. ReportChapterId int `description:"报告章节Id"`
  24. ClassifyIdFirst int `description:"一级分类id"`
  25. ClassifyNameFirst string `description:"一级分类名称"`
  26. ClassifyIdSecond int `description:"二级分类id"`
  27. ClassifyNameSecond string `description:"二级分类名称"`
  28. ReportChapterTypeId int `decription:"报告章节类型id"`
  29. PublishTime time.Time `description:"发布时间"`
  30. Title string `description:"标题"`
  31. ContentSub string `description:"内容前两个章节"`
  32. }
  33. type ReportSearchResp struct {
  34. Paging *paging.PagingItem
  35. List []*ReportCollectListItem
  36. }