You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-fly/tmpl/setting.go

46 lines
926 B

package tmpl
import (
"github.com/gin-gonic/gin"
"net/http"
)
//设置界面
func PageSetting(c *gin.Context) {
c.HTML(http.StatusOK, "setting.html", gin.H{
"tab_index":"2-3",
"action":"setting",
})
}
//设置mysql
func PageSettingMysql(c *gin.Context) {
c.HTML(http.StatusOK, "setting_mysql.html", gin.H{
"tab_index":"2-4",
"action":"setting_mysql",
})
}
//前台js部署
func PageWebJs(c *gin.Context){
c.HTML(http.StatusOK, "chat_web.js",nil)
}
//前台css部署
func PageWebCss(c *gin.Context){
c.HTML(http.StatusOK, "chat_web.css",nil)
}
func PageKefuList(c *gin.Context) {
c.HTML(http.StatusOK, "setting_kefu_list.html", gin.H{
"tab_index":"1-2",
"action":"setting_kefu_list",
})
}
type SettingHtml struct {
*CommonHtml
4 years ago
Username, Password string
}
4 years ago
func NewSettingHtml(w http.ResponseWriter) *SettingHtml {
obj := new(SettingHtml)
parent := NewRender(w)
obj.CommonHtml = parent
return obj
}