浏览代码

newlist 标签改数组

ziwen 1 年之前
父节点
当前提交
cb7c745991
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      controllers/research.go
  2. 1 1
      models/report.go

+ 1 - 1
controllers/research.go

@@ -163,7 +163,7 @@ func (this *MobileResearchController) ArticleNewList() {
 			ButtonStyle:     styleMap[v.ArticleTypeId],
 			List:            v.List,
 			IsSpecial:       v.IsSpecial,
-			SpecialTags:     v.SpecialTags,
+			SpecialTags:     strings.Split(v.SpecialTags, ","),
 			SpecialColumnId: v.SpecialColumnId,
 		}
 		if v.ArticleTypeId == -1 {

+ 1 - 1
models/report.go

@@ -831,7 +831,7 @@ type ArticleResearchResp struct {
 	List            []*IndustrialManagementIdInt `description:"产业列表"`
 	ListSubject     []*IndustrialSubject         `description:"标的列表"`
 	IsSpecial       int                          `description:"是否为研选专栏"`
-	SpecialTags     string                       `description:"研选专栏标签"`
+	SpecialTags     []string                       `description:"研选专栏标签"`
 	SpecialColumnId int                          `description:"专栏栏目id"`
 }