Browse Source

搜索栏回显内容说明添加V2

xingzai 2 năm trước cách đây
mục cha
commit
3b762422c6
2 tập tin đã thay đổi với 17 bổ sung18 xóa
  1. 5 5
      controllers/report.go
  2. 12 13
      models/report.go

+ 5 - 5
controllers/report.go

@@ -1226,11 +1226,11 @@ func (this *ReportController) IsShow() {
 	if total > 0 {
 	if total > 0 {
 		resp.IsShowList = true
 		resp.IsShowList = true
 	}
 	}
-	resp.SummarySearch = "全局搜索"
-	resp.ReportSearch = "全局搜索"
-	resp.YanXuanSearch = "全局搜索"
-	resp.ActivitySearch = "全局搜索"
-	resp.TabSearch = "请输入关键词"
+	resp.SearchTxtList.SummarySearch = "全局搜索"
+	resp.SearchTxtList.ReportSearch = "全局搜索"
+	resp.SearchTxtList.YanXuanSearch = "全局搜索"
+	resp.SearchTxtList.ActivitySearch = "全局搜索"
+	resp.SearchTxtList.TabSearch = "请输入关键词"
 	resp.IsShow = true
 	resp.IsShow = true
 	br.Ret = 200
 	br.Ret = 200
 	br.Success = true
 	br.Success = true

+ 12 - 13
models/report.go

@@ -208,22 +208,21 @@ func GetWhichDepartmentCount(condition string) (count int, err error) {
 }
 }
 
 
 type IsShow struct {
 type IsShow struct {
-	IsShow          bool   `description:"绝密内参按钮是否展示"`
-	IsShowResearch  bool   `description:"研选是否展示限免"`
-	IsShowChart     bool   `description:"图表是否展示限免"`
-	IsShowList      bool   `description:"榜单是否展示"`
-	LinkWxExplain   string `description:"关注微信公众号链接说明地址"`
-	YanXuan_Explain bool   `description:"研选说明"`
-	SummarySearch   string `description:"素材库搜索说明"`
-	ReportSearch    string `description:"报告搜索说明"`
-	YanXuanSearch   string `description:"研选搜索说明"`
-	ActivitySearch  string `description:"活动搜索说明"`
-	TabSearch       string `description:"素材库搜索说明"`
+	IsShow          bool      `description:"绝密内参按钮是否展示"`
+	IsShowResearch  bool      `description:"研选是否展示限免"`
+	IsShowChart     bool      `description:"图表是否展示限免"`
+	IsShowList      bool      `description:"榜单是否展示"`
+	LinkWxExplain   string    `description:"关注微信公众号链接说明地址"`
+	YanXuan_Explain bool      `description:"研选说明"`
+	SearchTxtList   SearchTxt `description:"搜索栏回显内容说明"`
 }
 }
 
 
 type SearchTxt struct {
 type SearchTxt struct {
-	SearchTxt  string `description:"搜索框所展示的内容"`
-	SearchType string `description:"搜索类型"`
+	SummarySearch  string `description:"素材库搜索说明"`
+	ReportSearch   string `description:"报告搜索说明"`
+	YanXuanSearch  string `description:"研选搜索说明"`
+	ActivitySearch string `description:"活动搜索说明"`
+	TabSearch      string `description:"素材库搜索说明"`
 }
 }
 
 
 //获取用户是否有查看权限
 //获取用户是否有查看权限