|
@@ -32,10 +32,17 @@ type IndustrialManagement struct {
|
|
Source int `description:"来源 1:弘则资源包(报告)、2:研选主题(报告)"`
|
|
Source int `description:"来源 1:弘则资源包(报告)、2:研选主题(报告)"`
|
|
IndustrialSubjectList []*IndustrialSubject `description:"标的列表"`
|
|
IndustrialSubjectList []*IndustrialSubject `description:"标的列表"`
|
|
MinReportTime string `description:"报告最早发布时间"`
|
|
MinReportTime string `description:"报告最早发布时间"`
|
|
|
|
+ TimeLineData string `description:"时间线所关联最新三篇文章的json数据"`
|
|
|
|
+ ListTimeLine []TimeLineReportResp `description:"时间线所关联最新三篇文章列表"`
|
|
IndustryVideo *MicroVideoSimpleInfo
|
|
IndustryVideo *MicroVideoSimpleInfo
|
|
AuthInfo *UserPermissionAuthInfo
|
|
AuthInfo *UserPermissionAuthInfo
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+type TimeLineReportResp struct {
|
|
|
|
+ Title string `description:"标题"`
|
|
|
|
+ PublishDate string `description:"发布时间"`
|
|
|
|
+}
|
|
|
|
+
|
|
type MicroVideoSimpleInfo struct {
|
|
type MicroVideoSimpleInfo struct {
|
|
Id int `description:"视频ID"`
|
|
Id int `description:"视频ID"`
|
|
Type int `description:"类型: 1-音频; 2-活动视频; 3-产业视频 、 4-系列问答视频"`
|
|
Type int `description:"类型: 1-音频; 2-活动视频; 3-产业视频 、 4-系列问答视频"`
|
|
@@ -239,6 +246,7 @@ func GetReportAndproductIndustrylListimg(categoryId, userId, startSize, pageSize
|
|
func GetSearchResourceList(condition string) (items []*IndustrialManagement, err error) {
|
|
func GetSearchResourceList(condition string) (items []*IndustrialManagement, err error) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
sql := `SELECT
|
|
sql := `SELECT
|
|
|
|
+ m.time_line_data,
|
|
m.industry_name,
|
|
m.industry_name,
|
|
m.chart_permission_id,
|
|
m.chart_permission_id,
|
|
m.industrial_management_id,
|
|
m.industrial_management_id,
|