|
@@ -5,34 +5,36 @@ import (
|
|
|
)
|
|
|
|
|
|
type ReportDetail struct {
|
|
|
- ReportInfo *ReportItem `json:"report_info"`
|
|
|
- ReportChapterList []*ReportChapterListItem `json:"report_chapter_list"`
|
|
|
- PermissionCheck *PermissionCheckInfo `json:"permission_check"`
|
|
|
- AuthOk bool `json:"auth_ok"`
|
|
|
+ ReportInfo *ReportItem `json:"report_info"`
|
|
|
+ ReportChapterList []*ReportChapterListItem `json:"report_chapter_list"`
|
|
|
+ PermissionCheck *PermissionCheckInfo `json:"permission_check"`
|
|
|
+ AuthOk bool `json:"auth_ok"`
|
|
|
+ LikeNum int64 `description:"点赞总数" json:"like_num"`
|
|
|
+ LikeEnabled int8 `description:"是否已点赞: 0-未点赞 1-已点赞" json:"like_enabled"`
|
|
|
}
|
|
|
|
|
|
type ReportChapterListItem struct {
|
|
|
- ReportChapterId int `json:"report_chapter_id"`
|
|
|
- ReportId int `json:"report_id"`
|
|
|
- Title string `json:"title"`
|
|
|
- TypeId int `json:"type_id"`
|
|
|
- TypeName string `json:"type_name"`
|
|
|
- Trend string `json:"trend"`
|
|
|
- ReportChapterTypeKey string `json:"report_chapter_type_key"`
|
|
|
- ReportChapterTypeThumb string `json:"report_chapter_type_thumb"`
|
|
|
- ReportChapterTypeName string `json:"report_chapter_type_name"`
|
|
|
- Sort int `json:"sort"`
|
|
|
- PublishTime time.Time `json:"publish_time"`
|
|
|
+ ReportChapterId int `json:"report_chapter_id"`
|
|
|
+ ReportId int `json:"report_id"`
|
|
|
+ Title string `json:"title"`
|
|
|
+ TypeId int `json:"type_id"`
|
|
|
+ TypeName string `json:"type_name"`
|
|
|
+ Trend string `json:"trend"`
|
|
|
+ ReportChapterTypeKey string `json:"report_chapter_type_key"`
|
|
|
+ ReportChapterTypeThumb string `json:"report_chapter_type_thumb"`
|
|
|
+ ReportChapterTypeName string `json:"report_chapter_type_name"`
|
|
|
+ Sort int `json:"sort"`
|
|
|
+ PublishTime time.Time `json:"publish_time"`
|
|
|
}
|
|
|
|
|
|
type ReportItem struct {
|
|
|
- ReportId int `json:"report_id"`
|
|
|
- ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
- ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
|
|
|
- Title string `description:"标题" json:"title"`
|
|
|
- Abstract string `description:"摘要" json:"abstract"`
|
|
|
- Author string `description:"作者" json:"author"`
|
|
|
- Frequency string `description:"频度" json:"frequency"`
|
|
|
+ ReportId int `json:"report_id"`
|
|
|
+ ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
+ ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
|
|
|
+ Title string `description:"标题" json:"title"`
|
|
|
+ Abstract string `description:"摘要" json:"abstract"`
|
|
|
+ Author string `description:"作者" json:"author"`
|
|
|
+ Frequency string `description:"频度" json:"frequency"`
|
|
|
PublishTime time.Time `description:"发布时间" json:"publish_time"`
|
|
|
Stage int `description:"期数" json:"stage"`
|
|
|
Content string `description:"内容" json:"content"`
|
|
@@ -45,32 +47,35 @@ type ReportItem struct {
|
|
|
}
|
|
|
|
|
|
type ReportChapterItem struct {
|
|
|
- ReportChapterId int `json:"report_chapter_id"`
|
|
|
- ReportId int `json:"report_id"`
|
|
|
- Title string `json:"title"`
|
|
|
+ ReportChapterId int `json:"report_chapter_id"`
|
|
|
+ ReportId int `json:"report_id"`
|
|
|
+ Title string `json:"title"`
|
|
|
Abstract string `json:"abstract"`
|
|
|
- TypeId int `json:"type_id"`
|
|
|
- TypeName string `json:"type_name"`
|
|
|
- Trend string `json:"trend"`
|
|
|
- ReportChapterTypeName string `json:"report_chapter_type_name"`
|
|
|
- PublishTime time.Time `json:"publish_time"`
|
|
|
- Content string `description:"内容" json:"content"`
|
|
|
- ContentSub string `description:"内容前两个章节" json:"content_sub"`
|
|
|
- VideoUrl string `json:"video_url"` //音频文件URL
|
|
|
- VideoName string `json:"video_name"` //音频文件名称
|
|
|
- VideoPlaySeconds string `json:"video_play_seconds"` //音频播放时长
|
|
|
- VideoSize string `json:"video_size"`
|
|
|
- Author string `description:"作者" json:"author"`
|
|
|
- Stage int `description:"期数" json:"stage"`
|
|
|
- ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
|
|
|
- ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
+ TypeId int `json:"type_id"`
|
|
|
+ TypeName string `json:"type_name"`
|
|
|
+ Trend string `json:"trend"`
|
|
|
+ ReportChapterTypeName string `json:"report_chapter_type_name"`
|
|
|
+ PublishTime time.Time `json:"publish_time"`
|
|
|
+ Content string `description:"内容" json:"content"`
|
|
|
+ ContentSub string `description:"内容前两个章节" json:"content_sub"`
|
|
|
+ VideoUrl string `json:"video_url"` //音频文件URL
|
|
|
+ VideoName string `json:"video_name"` //音频文件名称
|
|
|
+ VideoPlaySeconds string `json:"video_play_seconds"` //音频播放时长
|
|
|
+ VideoSize string `json:"video_size"`
|
|
|
+ VideoImg string `description:"音频播放条的图片" json:"video_img"`
|
|
|
+ Author string `description:"作者" json:"author"`
|
|
|
+ Stage int `description:"期数" json:"stage"`
|
|
|
+ ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
|
|
|
+ ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
}
|
|
|
|
|
|
type ReportChapterDetail struct {
|
|
|
- ReportChapterItem * ReportChapterItem `json:"report_chapter_item"`
|
|
|
- PermissionCheck *PermissionCheckInfo `json:"permission_check"`
|
|
|
- ReportChapterMenuList []*ReportChapterMenu `json:"report_chapter_menu_list""`
|
|
|
- AuthOk bool `json:"auth_ok"`
|
|
|
+ ReportChapterItem *ReportChapterItem `json:"report_chapter_item"`
|
|
|
+ PermissionCheck *PermissionCheckInfo `json:"permission_check"`
|
|
|
+ ReportChapterMenuList []*ReportChapterMenu `json:"report_chapter_menu_list"`
|
|
|
+ AuthOk bool `json:"auth_ok"`
|
|
|
+ LikeNum int64 `description:"点赞总数" json:"like_num"`
|
|
|
+ LikeEnabled int8 `description:"是否已点赞: 0-未点赞 1-已点赞" json:"like_enabled"`
|
|
|
}
|
|
|
|
|
|
type ReportChapterMenu struct {
|
|
@@ -84,60 +89,61 @@ type ReportChapterMenu struct {
|
|
|
}
|
|
|
|
|
|
type ReportListItem struct {
|
|
|
- ReportId int `description:"报告Id" json:"report_id"`
|
|
|
- ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
|
|
|
- ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
- ClassifyIdSecond int `description:"二级分类id" json:"classify_id_second"`
|
|
|
- ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
|
|
|
- Title string `description:"标题" json:"title"`
|
|
|
- Abstract string `description:"摘要" json:"abstract"`
|
|
|
- Author string `description:"作者" json:"author"`
|
|
|
- ReportImgUrl string `description:"作者头像" json:"report_img_url"`
|
|
|
- PublishTime time.Time `description:"发布时间" json:"publish_time"`
|
|
|
- Stage int `description:"期数" json:"stage"`
|
|
|
+ ReportId int `description:"报告Id" json:"report_id"`
|
|
|
+ ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
|
|
|
+ ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
+ ClassifyIdSecond int `description:"二级分类id" json:"classify_id_second"`
|
|
|
+ ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
|
|
|
+ Title string `description:"标题" json:"title"`
|
|
|
+ Abstract string `description:"摘要" json:"abstract"`
|
|
|
+ Author string `description:"作者" json:"author"`
|
|
|
+ ReportImgUrl string `description:"作者头像" json:"report_img_url"`
|
|
|
+ PublishTime time.Time `description:"发布时间" json:"publish_time"`
|
|
|
+ Stage int `description:"期数" json:"stage"`
|
|
|
VideoList []*VideoListItem `json:"video_list"`
|
|
|
- AuthOk bool `json:"auth_ok"`
|
|
|
- TitleInfo string `json:"title_info"`
|
|
|
+ AuthOk bool `json:"auth_ok"`
|
|
|
+ TitleInfo string `json:"title_info"`
|
|
|
}
|
|
|
|
|
|
type VideoListItem struct {
|
|
|
- VideoUrl string `description:"音频文件URL" json:"video_url"`
|
|
|
- Sort int `description:"音频内容排序" json:"sort"`
|
|
|
- VideoName string `json:"video_name"` //音频文件名称
|
|
|
- VideoPlaySeconds string `json:"video_play_seconds"` //音频播放时长
|
|
|
+ VideoUrl string `description:"音频文件URL" json:"video_url"`
|
|
|
+ Sort int `description:"音频内容排序" json:"sort"`
|
|
|
+ VideoName string `json:"video_name"` //音频文件名称
|
|
|
+ VideoPlaySeconds string `json:"video_play_seconds"` //音频播放时长
|
|
|
+ VideoImg string `json:"video_img"` // 音频播放条前面展示的图片
|
|
|
}
|
|
|
|
|
|
type ReportList struct {
|
|
|
- Paging *PagingItem `json:"paging"`
|
|
|
- List []*ReportListItem `json:"list"`
|
|
|
+ Paging *PagingItem `json:"paging"`
|
|
|
+ List []*ReportListItem `json:"list"`
|
|
|
}
|
|
|
|
|
|
type ReportCollectListItem struct {
|
|
|
- ReportId int `description:"报告Id" json:"report_id"`
|
|
|
- ReportChapterId int `json:"report_chapter_id"`
|
|
|
- ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
|
|
|
- ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
- ClassifyIdSecond int `description:"二级分类id" json:"classify_id_second"`
|
|
|
- ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
|
|
|
- ReportChapterTypeId int `json:"report_chapter_type_id"`
|
|
|
- PublishTime time.Time `description:"发布时间" json:"publish_time"`
|
|
|
- Title string `description:"标题" json:"title"`
|
|
|
- ContentSub string `description:"内容前两个章节" json:"content_sub"`
|
|
|
+ ReportId int `description:"报告Id" json:"report_id"`
|
|
|
+ ReportChapterId int `json:"report_chapter_id"`
|
|
|
+ ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
|
|
|
+ ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
|
|
|
+ ClassifyIdSecond int `description:"二级分类id" json:"classify_id_second"`
|
|
|
+ ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
|
|
|
+ ReportChapterTypeId int `json:"report_chapter_type_id"`
|
|
|
+ PublishTime time.Time `description:"发布时间" json:"publish_time"`
|
|
|
+ Title string `description:"标题" json:"title"`
|
|
|
+ ContentSub string `description:"内容前两个章节" json:"content_sub"`
|
|
|
}
|
|
|
|
|
|
type ReportCollectList struct {
|
|
|
- Date string `json:"date"`
|
|
|
- SubList []*ReportCollectListItem `json:"sub_list"`
|
|
|
+ Date string `json:"date"`
|
|
|
+ SubList []*ReportCollectListItem `json:"sub_list"`
|
|
|
}
|
|
|
|
|
|
type ReportCollectResp struct {
|
|
|
- Paging *PagingItem `json:"paging"`
|
|
|
- List []*ReportCollectList `json:"list"`
|
|
|
+ Paging *PagingItem `json:"paging"`
|
|
|
+ List []*ReportCollectList `json:"list"`
|
|
|
}
|
|
|
|
|
|
type ReportSearchResp struct {
|
|
|
- Paging *PagingItem `json:"paging"`
|
|
|
- List []*ReportCollectListItem `json:"list"`
|
|
|
+ Paging *PagingItem `json:"paging"`
|
|
|
+ List []*ReportCollectListItem `json:"list"`
|
|
|
}
|
|
|
|
|
|
type EsReportItem struct {
|
|
@@ -158,24 +164,24 @@ type EsReportItem struct {
|
|
|
}
|
|
|
|
|
|
type TickerDataItem struct {
|
|
|
- Date string `json:"date"`
|
|
|
- Ticker string `json:"ticker"`
|
|
|
- BaseColumnName string `json:"base_column_name"`
|
|
|
- TickerValue float64 `json:"ticker_value"`
|
|
|
- LastValue float64 `json:"last_value"`
|
|
|
- DdValue float64 `json:"dd_value"`
|
|
|
- WwValue float64 `json:"ww_value"`
|
|
|
- MmValue float64 `json:"mm_value"`
|
|
|
+ Date string `json:"date"`
|
|
|
+ Ticker string `json:"ticker"`
|
|
|
+ BaseColumnName string `json:"base_column_name"`
|
|
|
+ TickerValue float64 `json:"ticker_value"`
|
|
|
+ LastValue float64 `json:"last_value"`
|
|
|
+ DdValue float64 `json:"dd_value"`
|
|
|
+ WwValue float64 `json:"ww_value"`
|
|
|
+ MmValue float64 `json:"mm_value"`
|
|
|
}
|
|
|
type TickerTitleData struct {
|
|
|
- TickerTitle string `json:"ticker_title"`
|
|
|
- ReportChapterTypeId int `json:"report_chapter_type_id"`
|
|
|
+ TickerTitle string `json:"ticker_title"`
|
|
|
+ ReportChapterTypeId int `json:"report_chapter_type_id"`
|
|
|
ReportChapterTypeName string `json:"report_chapter_type_name"`
|
|
|
- DataTableImage string `json:"data_table_image"`
|
|
|
+ DataTableImage string `json:"data_table_image"`
|
|
|
}
|
|
|
type TickerData struct {
|
|
|
- List []*TickerDataItem `json:"list"`
|
|
|
- TickerTitle *TickerTitleData `json:"ticker_title"`
|
|
|
+ List []*TickerDataItem `json:"list"`
|
|
|
+ TickerTitle *TickerTitleData `json:"ticker_title"`
|
|
|
}
|
|
|
|
|
|
type ReportCollectListResp []*ReportCollectList
|
|
@@ -193,6 +199,7 @@ func (p ReportCollectListResp) Swap(i, j int) {
|
|
|
}
|
|
|
|
|
|
type ReportChapterList []*ReportChapterListItem
|
|
|
+
|
|
|
func (r ReportChapterList) Len() int {
|
|
|
return len(r)
|
|
|
}
|
|
@@ -217,4 +224,4 @@ func (rc ReportChapterMenuList) Less(i, j int) bool {
|
|
|
|
|
|
func (rc ReportChapterMenuList) Swap(i, j int) {
|
|
|
rc[i], rc[j] = rc[j], rc[i]
|
|
|
-}
|
|
|
+}
|