report.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. package response
  2. import (
  3. "time"
  4. )
  5. type ReportDetail struct {
  6. ReportInfo *ReportItem `json:"report_info"`
  7. ReportChapterList []*ReportChapterListItem `json:"report_chapter_list"`
  8. PermissionCheck *PermissionCheckInfo `json:"permission_check"`
  9. AuthOk bool `json:"auth_ok"`
  10. }
  11. type ReportChapterListItem struct {
  12. ReportChapterId int `json:"report_chapter_id"`
  13. ReportId int `json:"report_id"`
  14. Title string `json:"title"`
  15. TypeId int `json:"type_id"`
  16. IsEdit int8 `json:"is_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. }
  44. type ReportChapterItem struct {
  45. ReportChapterId int `json:"report_chapter_id"`
  46. ReportId int `json:"report_id"`
  47. Title string `json:"title"`
  48. TypeId int `json:"type_id"`
  49. Edit int8 `json:"edit"`
  50. Trend string `json:"trend"`
  51. ReportChapterTypeName string `json:"report_chapter_type_name"`
  52. PauseStartTime time.Time `json:"pause_start_time"`
  53. PauseEndTime time.Time `json:"pause_end_time"`
  54. PublishTime time.Time `json:"publish_time"`
  55. Content string `description:"内容" json:"content"`
  56. ContentSub string `description:"内容前两个章节" json:"content_sub"`
  57. VideoUrl string `json:"video_url"` //音频文件URL
  58. VideoName string `json:"video_name"` //音频文件名称
  59. VideoPlaySeconds string `json:"video_play_seconds"` //音频播放时长
  60. VideoSize string `json:"video_size"`
  61. }
  62. type ReportChapterDetail struct {
  63. ReportChapterItem * ReportChapterItem `json:"report_chapter_item"`
  64. PermissionCheck *PermissionCheckInfo `json:"permission_check"`
  65. ReportChapterMenuList []*ReportChapterMenu `json:"report_chapter_menu_list""`
  66. AuthOk bool `json:"auth_ok"`
  67. }
  68. type ReportChapterMenu struct {
  69. ReportChapterId int `json:"report_chapter_id"`
  70. ReportId int `json:"report_id"`
  71. ReportChapterTypeName string `json:"report_chapter_type_name"`
  72. ReportChapterTypeThumb string `json:"report_chapter_type_thumb"`
  73. }
  74. type ReportListItem struct {
  75. ReportId int `description:"报告Id" json:"report_id"`
  76. ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
  77. ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
  78. ClassifyIdSecond int `description:"二级分类id" json:"classify_id_second"`
  79. ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
  80. Title string `description:"标题" json:"title"`
  81. Abstract string `description:"摘要" json:"abstract"`
  82. Author string `description:"作者" json:"author"`
  83. ReportImgUrl string `description:"作者头像" json:"report_img_url"`
  84. PublishTime time.Time `description:"发布时间" json:"publish_time"`
  85. Stage int `description:"期数" json:"stage"`
  86. VideoUrl string `description:"音频文件URL" json:"video_url"`
  87. AuthOk bool `json:"auth_ok"`
  88. }
  89. type ReportList struct {
  90. Paging *PagingItem `json:"paging"`
  91. List []*ReportListItem `json:"list"`
  92. }
  93. type ReportCollectListItem struct {
  94. ReportId int `description:"报告Id" json:"report_id"`
  95. ReportChapterId int `json:"report_chapter_id"`
  96. ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
  97. ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
  98. ClassifyIdSecond int `description:"二级分类id" json:"classify_id_second"`
  99. ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
  100. ReportChapterTypeId int `json:"report_chapter_type_id"`
  101. PublishTime time.Time `description:"发布时间" json:"publish_time"`
  102. Title string `description:"标题" json:"title"`
  103. ContentSub string `description:"内容前两个章节" json:"content_sub"`
  104. }
  105. type ReportCollectResp struct {
  106. Paging *PagingItem `json:"paging"`
  107. List []*ReportCollectListItem `json:"list"`
  108. }
  109. type EsReportItem struct {
  110. Author string `description:"作者"`
  111. BodyContent string `description:"内容"`
  112. Categories string `description:"品种名称"`
  113. ClassifyIdFirst int `description:"一级分类id"`
  114. ClassifyNameFirst string `description:"一级分类名称"`
  115. ClassifyIdSecond int `description:"二级分类id"`
  116. ClassifyNameSecond string `description:"二级分类名称"`
  117. PublishState int `description:"1:未发布,2:已发布"`
  118. PublishTime string `description:"发布时间"`
  119. ReportChapterId int `description:"报告章节Id"`
  120. ReportId int `description:"报告Id"`
  121. Title string `description:"标题"`
  122. }
  123. type TickerDataItem struct {
  124. Date string `json:"date"`
  125. Ticker string `json:"ticker"`
  126. BaseColumnName string `json:"base_column_name"`
  127. TickerValue float64 `json:"ticker_value"`
  128. LastValue float64 `json:"last_value"`
  129. DdValue float64 `json:"dd_value"`
  130. WwValue float64 `json:"ww_value"`
  131. MmValue float64 `json:"mm_value"`
  132. }