浏览代码

no message

xingzai 1 年之前
父节点
当前提交
3620475f08
共有 2 个文件被更改,包括 2 次插入0 次删除
  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 {