瀏覽代碼

新增字段

xiexiaoyuan 2 年之前
父節點
當前提交
93eff7f21a
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      controller/pc/pc.go
  2. 1 0
      models/response/pc/report.go

+ 2 - 0
controller/pc/pc.go

@@ -182,6 +182,7 @@ func ClassifyDetailBanner(c *gin.Context) {
 			Stage:             chapterItem.Stage,
 			ImgUrl:            "",
 			Type:              "报告合集",
+			ShowType: 1,
 		}
 		bannerResp = resp
 	} else {
@@ -216,6 +217,7 @@ func ClassifyDetailBanner(c *gin.Context) {
 			ClassifyIdFirst:    reportItem.ClassifyIdFirst,
 			ClassifyNameSecond: reportItem.ClassifyNameSecond,
 			ClassifyIdSecond:   reportItem.ClassifyIdSecond,
+			ShowType:           parentClassify.ShowType,
 		}
 
 		if parentClassify.ShowType == 1 || parentClassify.ShowType == 3 {

+ 1 - 0
models/response/pc/report.go

@@ -105,6 +105,7 @@ type DetailBannerResp struct {
 	ClassifyNameSecond string
 	ClassifyIdSecond   int
 	Type               string
+	ShowType           uint8
 }
 
 type LatestReportBanner struct {