Browse Source

fix:新增章节报告详情的展示配置

Roc 7 tháng trước cách đây
mục cha
commit
96b5ae8cdb
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 1 0
      models/classify.go
  2. 2 1
      services/classify.go

+ 1 - 0
models/classify.go

@@ -43,6 +43,7 @@ type Classify struct {
 	Enabled           int       `description:"是否可用,1可用,0禁用"`
 	Level             int       `description:"层级"`
 	HasChild          int       `description:"是否有子级别,0:下面没有子分类,1:下面有子分类;默认:0"`
+	ReportShowType    int       `description:"报告详情的展示类型:1-拼接;2:目录"`
 }
 
 type ClassifyAddReq struct {

+ 2 - 1
services/classify.go

@@ -265,7 +265,8 @@ func AddReportClassify(classifyName string, parentId int, chartPermissionIdList
 	classify.ModifyTime = nowTime
 	classify.Sort = maxSort + 1
 	classify.Enabled = 1
-	classify.ShowType = 1 //默认列表格式
+	classify.ShowType = 1       //默认列表格式
+	classify.ReportShowType = 1 //默认列表格式
 	classify.IsShow = 1
 	classify.Level = level
 	/*classify.Abstract = req.Abstract