Browse Source

no message

xingzai 1 year ago
parent
commit
3620475f08
2 changed files with 2 additions and 0 deletions
  1. 1 0
      controllers/article.go
  2. 1 0
      models/article.go

+ 1 - 0
controllers/article.go

@@ -186,6 +186,7 @@ func (this *ArticleController) Detail() {
 			} else {
 				articlePermissionName = detail.CategoryName
 			}
+			detail.ChartPermissionName = articlePermissionName
 			var hasPersion bool
 			slice := strings.Split(articlePermissionName, ",")
 			for _, v := range slice {

+ 1 - 0
models/article.go

@@ -80,6 +80,7 @@ type ArticleDetail struct {
 	ArticleTypeId            int             `description:"文章类型ID"`
 	IsApplyAppointmentExpert bool            `description:"是否属于专家访谈"`
 	ShareImg                 string          `description:"分享图片"`
+	ChartPermissionName      string          `description:"行业名称"`
 }
 
 type CygxArticleIdReq struct {