report.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package response
  2. import (
  3. "hongze/hongze_yb/services/company"
  4. "time"
  5. )
  6. type ReportDetail struct {
  7. ReportInfo *ReportItem `json:"report_info"`
  8. ReportTypeList []*ReportTypeListItem `json:"report_type_list"`
  9. PermissionCheck *company.PermissionCheckInfo `json:"permission_check"`
  10. }
  11. type ReportTypeListItem struct {
  12. ReportTypeId uint64 `json:"report_type_id"`
  13. ReportId int `json:"report_id"`
  14. Title string `json:"title"`
  15. TypeId int `json:"type_id"`
  16. Edit int8 `json:"edit"`
  17. Trend string `json:"trend"`
  18. ReportChapterTypeKey string `json:"report_chapter_type_key"`
  19. ReportChapterTypeThumb string `json:"report_chapter_type_thumb"`
  20. BannerUrl string `json:"banner_url"`
  21. ReportChapterTypeName string `json:"report_chapter_type_name"`
  22. Sort int `json:"sort"`
  23. EditImgUrl string `json:"edit_img_url"`
  24. PauseStartTime time.Time `json:"pause_start_time"`
  25. PauseEndTime time.Time `json:"pause_end_time"`
  26. PublishTime time.Time `json:"publish_time"`
  27. }
  28. type ReportItem struct {
  29. ReportId int `json:"report_id"`
  30. ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
  31. ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
  32. Title string `description:"标题" json:"title"`
  33. Abstract string `description:"摘要" json:"abstract"`
  34. Author string `description:"作者" json:"author"`
  35. Frequency string `description:"频度" json:"frequency"`
  36. PublishTime time.Time `description:"发布时间" json:"publish_time"`
  37. Stage int `description:"期数" json:"stage"`
  38. Content string `description:"内容" json:"content"`
  39. VideoUrl string `description:"音频文件URL" json:"video_url"`
  40. VideoName string `description:"音频文件名称" json:"video_name"`
  41. VideoPlaySeconds string `description:"音频播放时长" json:"video_play_seconds"`
  42. ContentSub string `description:"内容前两个章节" json:"content_sub"`
  43. }