|
@@ -500,6 +500,7 @@ type ArticleCollectionResp struct {
|
|
|
List []*IndustrialManagementResp `description:"产业列表"`
|
|
|
IsSpecial int `description:"是否为研选专栏"`
|
|
|
SpecialTags string `description:"研选专栏标签"`
|
|
|
+ SpecialType int `description:"专栏类型 1:笔记,2:观点"`
|
|
|
}
|
|
|
|
|
|
type IndustrialManagementResp struct {
|
|
@@ -625,6 +626,7 @@ func GetArticleResearchList(condition string, pars []interface{}, startSize, pag
|
|
|
( SELECT count( 1 ) FROM cygx_article_collect AS ac INNER JOIN wx_user as u ON u.user_id = ac.user_id WHERE ac.article_id = a.article_id AND DATE_SUB( CURDATE(), INTERVAL 30 DAY ) <= date( ac.create_time ) ) AS collect_num_order,
|
|
|
( SELECT count( 1 ) FROM cygx_article_collect AS ac WHERE ac.article_id = a.article_id AND user_id = ? ) AS my_collect_num,
|
|
|
0 AS is_special,
|
|
|
+ 0 AS special_type,
|
|
|
'' AS special_tags
|
|
|
FROM
|
|
|
cygx_article AS a
|
|
@@ -651,6 +653,7 @@ func GetArticleResearchList(condition string, pars []interface{}, startSize, pag
|
|
|
0 AS collect_num_order,
|
|
|
( SELECT count( 1 ) FROM cygx_yanxuan_special_collect AS ac WHERE ac.yanxuan_special_id = a.id AND user_id = ? ) AS my_collect_num,
|
|
|
1 AS is_special,
|
|
|
+ a.type AS special_type,
|
|
|
a.tags AS special_tags
|
|
|
FROM
|
|
|
cygx_yanxuan_special AS a
|