setting.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package tmpl
  2. import (
  3. "git.wanbits.cc/sin/flytalk/config"
  4. "github.com/gin-gonic/gin"
  5. "net/http"
  6. )
  7. //设置界面
  8. func PageSetting(c *gin.Context) {
  9. c.HTML(http.StatusOK, "setting.html", gin.H{
  10. "tab_index": "1-1",
  11. "action": "setting",
  12. })
  13. }
  14. //设置欢迎
  15. func PageSettingWelcome(c *gin.Context) {
  16. c.HTML(http.StatusOK, "setting_welcome.html", gin.H{
  17. "tab_index": "1-2",
  18. "action": "setting_welcome",
  19. })
  20. }
  21. //统计
  22. func PageSettingStatis(c *gin.Context) {
  23. c.HTML(http.StatusOK, "setting_statistics.html", gin.H{
  24. "tab_index": "1-3",
  25. "action": "setting_statistics",
  26. })
  27. }
  28. //设置mysql
  29. func PageSettingMysql(c *gin.Context) {
  30. c.HTML(http.StatusOK, "setting_mysql.html", gin.H{
  31. "tab_index": "2-4",
  32. "action": "setting_mysql",
  33. })
  34. }
  35. //设置部署
  36. func PageSettingDeploy(c *gin.Context) {
  37. c.HTML(http.StatusOK, "setting_deploy.html", gin.H{
  38. "tab_index": "2-5",
  39. "action": "setting_deploy",
  40. })
  41. }
  42. //前台js部署
  43. func PageWebJs(c *gin.Context) {
  44. c.HTML(http.StatusOK, "chat_web.js", nil)
  45. }
  46. //前台css部署
  47. func PageWebCss(c *gin.Context) {
  48. c.HTML(http.StatusOK, "chat_web.css", nil)
  49. }
  50. // 设置客服信息
  51. func PageKefuList(c *gin.Context) {
  52. c.HTML(http.StatusOK, "setting_kefu_list.html", gin.H{
  53. "tab_index": "3-2",
  54. "action": "setting_kefu_list",
  55. "qiniu_domain": config.QiniuConfig.Domain,
  56. })
  57. }
  58. //角色列表
  59. func PageRoleList(c *gin.Context) {
  60. c.HTML(http.StatusOK, "setting_role_list.html", gin.H{
  61. "tab_index": "3-1",
  62. "action": "roles_list",
  63. })
  64. }
  65. //角色列表
  66. func PageIpblack(c *gin.Context) {
  67. c.HTML(http.StatusOK, "setting_ipblack.html", gin.H{
  68. "tab_index": "4-5",
  69. "action": "setting_ipblack",
  70. })
  71. }
  72. //配置项列表
  73. func PageConfig(c *gin.Context) {
  74. c.HTML(http.StatusOK, "setting_config.html", gin.H{
  75. "tab_index": "4-6",
  76. "action": "setting_config",
  77. })
  78. }
  79. //配置项编辑首页
  80. func PageSettingIndexPage(c *gin.Context) {
  81. c.HTML(http.StatusOK, "setting_pageindex.html", gin.H{
  82. "tab_index": "4-7",
  83. "action": "setting_pageindex",
  84. })
  85. }