package tmpl import ( "github.com/gin-gonic/gin" "kefu/models" "net/http" ) //设置界面 func PageSetting(c *gin.Context) { c.HTML(http.StatusOK, "setting.html", gin.H{ "tab_index": "1-1", "action": "setting", }) } //设置欢迎 func PageSettingWelcome(c *gin.Context) { c.HTML(http.StatusOK, "setting_welcome.html", gin.H{ "tab_index": "1-2", "action": "setting_welcome", }) } //统计 func PageSettingStatis(c *gin.Context) { c.HTML(http.StatusOK, "setting_statistics.html", gin.H{ "tab_index": "1-3", "action": "setting_statistics", }) } //设置mysql func PageSettingMysql(c *gin.Context) { c.HTML(http.StatusOK, "setting_mysql.html", gin.H{ "tab_index": "2-4", "action": "setting_mysql", }) } //设置部署 func PageSettingDeploy(c *gin.Context) { systemBussinesId := models.FindConfig("SystemBussinesId") c.HTML(http.StatusOK, "setting_deploy.html", gin.H{ "tab_index": "2-5", "action": "setting_deploy", "systemBussinesId": systemBussinesId, }) } func PageKefuList(c *gin.Context) { c.HTML(http.StatusOK, "setting_kefu_list.html", gin.H{ "tab_index": "3-2", "action": "setting_kefu_list", }) } func PageVisitorList(c *gin.Context) { KefuCleanBtn := models.FindConfig("KefuCleanBtn") c.HTML(http.StatusOK, "setting_visitor_list.html", gin.H{ "tab_index": "3-2", "action": "setting_visitor_list", "KefuCleanBtn": KefuCleanBtn, }) } func PageUserAllList(c *gin.Context) { c.HTML(http.StatusOK, "setting_user_all.html", gin.H{ "tab_index": "3-2", "action": "setting_user_all", }) } func PageKefuMessage(c *gin.Context) { c.HTML(http.StatusOK, "setting_kefu_message.html", gin.H{ "tab_index": "3-2", "action": "setting_kefu_message", }) } func PageVisitorMessage(c *gin.Context) { c.HTML(http.StatusOK, "setting_visitor_message.html", gin.H{ "tab_index": "3-2", "action": "setting_visitor_message", }) } func PageAvator(c *gin.Context) { c.HTML(http.StatusOK, "setting_avator.html", gin.H{ "tab_index": "3-2", "action": "setting_avator", }) } func PageModifypass(c *gin.Context) { c.HTML(http.StatusOK, "setting_modifypass.html", gin.H{ "tab_index": "3-2", "action": "setting_modifypass", }) } //角色列表 func PageRoleList(c *gin.Context) { c.HTML(http.StatusOK, "setting_role_list.html", gin.H{ "tab_index": "3-1", "action": "roles_list", }) } //角色列表 func PageIpblack(c *gin.Context) { c.HTML(http.StatusOK, "setting_ipblack.html", gin.H{ "tab_index": "4-5", "action": "setting_ipblack", }) } //配置项列表 func PageConfig(c *gin.Context) { c.HTML(http.StatusOK, "setting_config.html", gin.H{ "tab_index": "4-6", "action": "setting_config", }) } //配置项列表 func PageConfigs(c *gin.Context) { c.HTML(http.StatusOK, "setting_configs.html", gin.H{ "tab_index": "4-6", "action": "setting_configs", }) } //配置项编辑首页 func PageSettingIndexPage(c *gin.Context) { c.HTML(http.StatusOK, "setting_pageindex.html", gin.H{ "tab_index": "4-7", "action": "setting_pageindex", }) } //配置项编辑首页 func PageSettingArticles(c *gin.Context) { c.HTML(http.StatusOK, "setting_articles.html", gin.H{ "tab_index": "4-8", "action": "setting_articles", }) } //配置项编辑首页 func PageSettingNews(c *gin.Context) { c.HTML(http.StatusOK, "setting_news.html", gin.H{ "tab_index": "4-3", "action": "setting_news", }) } //配置微信菜单 func PageSettingWechatMenu(c *gin.Context) { entId := c.Query("ent_id") wechatMenu := models.FindEntConfig(entId, "WechatMenu") c.HTML(http.StatusOK, "setting_wechat_menu.html", gin.H{ "tab_index": "4-9", "wechatMenu": wechatMenu, "action": "setting_wechat_menu", }) } //配置项编辑首页 func PageSettingLogs(c *gin.Context) { c.HTML(http.StatusOK, "setting_logs.html", gin.H{ "tab_index": "4-8", "action": "setting_logs", }) }