|
@@ -147,6 +147,9 @@ type ArticleDetail struct {
|
|
SellerList []*SellerRep
|
|
SellerList []*SellerRep
|
|
HttpUrl string `description:"文章链接跳转地址"`
|
|
HttpUrl string `description:"文章链接跳转地址"`
|
|
IsNeedJump bool `description:"是否需要跳转链接地址"`
|
|
IsNeedJump bool `description:"是否需要跳转链接地址"`
|
|
|
|
+ ReportLink string `description:"报告链接"`
|
|
|
|
+ IsShowLinkButton int `description:"这种报告类型是否展示查看报告链接"`
|
|
|
|
+ ArticleTypeId int `description:"文章类型ID"`
|
|
}
|
|
}
|
|
|
|
|
|
type ArticleDetailFileLink struct {
|
|
type ArticleDetailFileLink struct {
|
|
@@ -626,27 +629,6 @@ WHERE
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-type CygxArticleType struct {
|
|
|
|
- ArticleTypeId int `orm:"column(article_type_id);pk";description:"文章类型ID"`
|
|
|
|
- ArticleTypeName string `description:"类型名称"`
|
|
|
|
- Sort int `description:"排序字段"`
|
|
|
|
- CreateTime time.Time `description:"创建时间"`
|
|
|
|
- ModifyTime time.Time `description:"最后修改时间"`
|
|
|
|
- IsSendEs int `description:"这种报告类型是否同步到Es"`
|
|
|
|
- YanxPermissionId int `description:"研选类型所对应的ID"`
|
|
|
|
- YanxPermissionName string `description:"研选类型所对应的名称"`
|
|
|
|
- IcoLink string `description:"图标链接地址"`
|
|
|
|
- IcoLinkM string `description:"移动端图标链接地址"`
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-//报告类型列表
|
|
|
|
-func GetCygxArticleTypeList() (items []*CygxArticleType, err error) {
|
|
|
|
- o := orm.NewOrm()
|
|
|
|
- sql := `SELECT * FROM cygx_article_type ORDER BY sort DESC`
|
|
|
|
- _, err = o.Raw(sql).QueryRows(&items)
|
|
|
|
- return
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
//通过文章ID获取文章所关联的标的ID
|
|
//通过文章ID获取文章所关联的标的ID
|
|
func GetSubjectIds(articleId int) (subjects string, err error) {
|
|
func GetSubjectIds(articleId int) (subjects string, err error) {
|
|
sql := ` SELECT
|
|
sql := ` SELECT
|