浏览代码

搜索栏回显内容说明添加

xingzai 2 年之前
父节点
当前提交
4bfb83eaf0
共有 2 个文件被更改,包括 15 次插入0 次删除
  1. 5 0
      controllers/report.go
  2. 10 0
      models/report.go

+ 5 - 0
controllers/report.go

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

+ 10 - 0
models/report.go

@@ -214,6 +214,16 @@ type IsShow struct {
 	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:"素材库搜索说明"`
+}
+
+type SearchTxt struct {
+	SearchTxt  string `description:"搜索框所展示的内容"`
+	SearchType string `description:"搜索类型"`
 }
 
 //获取用户是否有查看权限