Browse Source

no message

zhangchuanxing 1 month ago
parent
commit
32cd7626fc
2 changed files with 7 additions and 2 deletions
  1. 3 2
      models/home.go
  2. 4 0
      services/article.go

+ 3 - 2
models/home.go

@@ -85,8 +85,9 @@ type ArticleListResp struct {
 	SpecialColumnId     int      `description:"专栏栏目id"`
 	SpecialType         int      `description:"专栏类型 1:笔记,2:观点"`
 	List                []*IndustrialManagementIdInt
-	TopTime             int `description:"置顶时间"`
-	ReportId            int `description:"FICC研报ID"`
+	TopTime             int    `description:"置顶时间"`
+	ReportId            int    `description:"FICC研报ID"`
+	SubCategoryName     string `description:"二级分类"`
 }
 
 type HomeChartListResp struct {

+ 4 - 0
services/article.go

@@ -229,6 +229,10 @@ func HandleArticleCategoryImg(list []*models.ArticleListResp, user *models.WxUse
 			v.IsCollect = articleCollectYanxuanSpecialMap[v.ArticleId]
 			v.Pv = yanxuanSpecialPv[v.ArticleId]
 		}
+
+		if v.SubCategoryName == "宏观G2观察" {
+			list[k].Title = "【宏观G2观察】" + v.Title
+		}
 	}
 
 	if len(list) == 0 {