|
@@ -6,18 +6,19 @@ import (
|
|
|
)
|
|
|
|
|
|
type CygxReportSelectionLog struct {
|
|
|
- ArticleSunId int `orm:"column(article_sun_id);pk"description:"子级报告id"`
|
|
|
- ArticleId int `description:"父级报告Id"`
|
|
|
- ChartPermissionId int `description:"行业ID"`
|
|
|
- CreateTime time.Time `description:"创建时间"`
|
|
|
- Body string `description:"内容"`
|
|
|
- IndustrialSubjectId string `description:"标的ID"`
|
|
|
- SubjectName string `description:"标的名称"`
|
|
|
- IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
- CompanyLabel string `description:"公司标签多个用{|}隔开"`
|
|
|
- OverviewArticleId int `description:"关联的综述报告ID"`
|
|
|
- IsNew int `description:"是否为New标签"`
|
|
|
- IsShowOverviewArticle int `description:"是否展示综述报告 1展示,0隐藏"`
|
|
|
+ ArticleSunId int `orm:"column(article_sun_id);pk"description:"子级报告id"`
|
|
|
+ ArticleId int `description:"父级报告Id"`
|
|
|
+ ChartPermissionId int `description:"行业ID"`
|
|
|
+ CreateTime time.Time `description:"创建时间"`
|
|
|
+ Body string `description:"内容"`
|
|
|
+ IndustrialSubjectId string `description:"标的ID"`
|
|
|
+ SubjectName string `description:"标的名称"`
|
|
|
+ IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ IndustrialManagementNames string `description:"产业资源包名称 多个用 , 隔开"`
|
|
|
+ CompanyLabel string `description:"公司标签多个用{|}隔开"`
|
|
|
+ OverviewArticleId int `description:"关联的综述报告ID"`
|
|
|
+ IsNew int `description:"是否为New标签"`
|
|
|
+ IsShowOverviewArticle int `description:"是否展示综述报告 1展示,0隐藏"`
|
|
|
}
|
|
|
|
|
|
type CygxReportSelectionLogRep struct {
|
|
@@ -31,35 +32,38 @@ type CygxReportSelectionLogRep struct {
|
|
|
}
|
|
|
|
|
|
type AddCygxReportSelectionLog struct {
|
|
|
- ChartPermissionId int `description:"行业ID"`
|
|
|
- IndustrialSubjectId string `description:"标的ID"`
|
|
|
- SubjectName string `description:"标的名称"`
|
|
|
- IndustrialSubjectName string `description:"标的ID"`
|
|
|
- Body string `description:"内容"`
|
|
|
- IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
- IndustrialManagementName string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
- CompanyLabel []string `description:"公司标签"`
|
|
|
- Label string `description:"公司标签"`
|
|
|
- OverviewArticleId int `description:"综述报告Id"`
|
|
|
- IsNew int `description:"是否为New标签"`
|
|
|
- IsShowOverviewArticle int `description:"是否展示综述报告 1展示,0隐藏"`
|
|
|
+ ChartPermissionId int `description:"行业ID"`
|
|
|
+ IndustrialSubjectId string `description:"标的ID"`
|
|
|
+ SubjectName string `description:"标的名称"`
|
|
|
+ IndustrialSubjectName string `description:"标的ID"`
|
|
|
+ Body string `description:"内容"`
|
|
|
+ IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ IndustrialManagementName string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ IndustrialManagementNames string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ CompanyLabel []string `description:"公司标签"`
|
|
|
+ Label string `description:"公司标签"`
|
|
|
+ OverviewArticleId int `description:"综述报告Id"`
|
|
|
+ IsNew int `description:"是否为New标签"`
|
|
|
+ IsShowOverviewArticle int `description:"是否展示综述报告 1展示,0隐藏"`
|
|
|
}
|
|
|
|
|
|
type CygxReportSelectionLogResp struct {
|
|
|
- ChartPermissionId int `description:"行业ID"`
|
|
|
- IndustrialSubjectId string `description:"标的ID"`
|
|
|
- SubjectName string `description:"标的名称"`
|
|
|
- IndustrialSubjectName string `description:"标的ID"`
|
|
|
- Body string `description:"内容"`
|
|
|
- IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
- IndustrialManagementName string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
- CompanyLabel []string `description:"公司标签"`
|
|
|
- Label string `description:"公司标签"`
|
|
|
- OverviewArticleId int `description:"综述报告Id"`
|
|
|
- OverviewArticleTitle string `description:"综述报告标题"`
|
|
|
- IsNew int `description:"是否为New标签"`
|
|
|
- IsShowOverviewArticle int `description:"是否展示综述报告 1展示,0隐藏"`
|
|
|
- ChartPermissionSort int `description:"品种排序"`
|
|
|
+ ChartPermissionId int `description:"行业ID"`
|
|
|
+ IndustrialSubjectId string `description:"标的ID"`
|
|
|
+ SubjectName string `description:"标的名称"`
|
|
|
+ ShowName string `description:"产业与标的展示名称"`
|
|
|
+ IndustrialSubjectName string `description:"标的ID"`
|
|
|
+ Body string `description:"内容"`
|
|
|
+ IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ IndustrialManagementName string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ IndustrialManagementNames string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ CompanyLabel []string `description:"公司标签"`
|
|
|
+ Label string `description:"公司标签"`
|
|
|
+ OverviewArticleId int `description:"综述报告Id"`
|
|
|
+ OverviewArticleTitle string `description:"综述报告标题"`
|
|
|
+ IsNew int `description:"是否为New标签"`
|
|
|
+ IsShowOverviewArticle int `description:"是否展示综述报告 1展示,0隐藏"`
|
|
|
+ ChartPermissionSort int `description:"品种排序"`
|
|
|
}
|
|
|
|
|
|
type CygxReportSelectionChart struct {
|
|
@@ -92,18 +96,19 @@ func GetCygxReportSelectionSjdpList(articleId int, typeStr string) (items []*Cyg
|
|
|
}
|
|
|
|
|
|
type CygxReportSelectionLoglist struct {
|
|
|
- ArticleSunId int `description:"子级报告id"`
|
|
|
- ArticleId int `description:"父级报告Id"`
|
|
|
- ChartPermissionId int `description:"行业ID"`
|
|
|
- PermissionName string `description:"行业ID"`
|
|
|
- CreateTime time.Time `description:"创建时间"`
|
|
|
- Body string `description:"内容"`
|
|
|
- IndustrialSubjectId string `description:"标的ID"`
|
|
|
- IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
- SubjectName string `description:"标的名称"`
|
|
|
- IcoLink string `orm:"column(image_url)"description:"图标链接"`
|
|
|
- OverviewArticleId int `description:"关联的综述报告ID"`
|
|
|
- IsNew int `description:"是否为New标签"`
|
|
|
+ ArticleSunId int `description:"子级报告id"`
|
|
|
+ ArticleId int `description:"父级报告Id"`
|
|
|
+ ChartPermissionId int `description:"行业ID"`
|
|
|
+ PermissionName string `description:"行业ID"`
|
|
|
+ CreateTime time.Time `description:"创建时间"`
|
|
|
+ Body string `description:"内容"`
|
|
|
+ IndustrialSubjectId string `description:"标的ID"`
|
|
|
+ IndustrialManagementId string `description:"产业资源包Id 多个用 , 隔开"`
|
|
|
+ IndustrialManagementNames string `description:"产业资源包名称 多个用 , 隔开"`
|
|
|
+ SubjectName string `description:"标的名称"`
|
|
|
+ IcoLink string `orm:"column(image_url)"description:"图标链接"`
|
|
|
+ OverviewArticleId int `description:"关联的综述报告ID"`
|
|
|
+ IsNew int `description:"是否为New标签"`
|
|
|
}
|
|
|
|
|
|
// 列表
|
|
@@ -112,7 +117,6 @@ func GetReportSelectionlogListAll(articleId int) (items []*CygxReportSelectionLo
|
|
|
sql := `SELECT l.*
|
|
|
FROM
|
|
|
cygx_report_selection_log AS l
|
|
|
- INNER JOIN cygx_industrial_subject AS s ON s.industrial_subject_id = l.industrial_subject_id
|
|
|
WHERE l.article_id = ? `
|
|
|
_, err = o.Raw(sql, articleId).QueryRows(&items)
|
|
|
return
|