kefu/controller/system.go

47 lines
917 B
Go
Raw Normal View History

2024-12-10 02:50:12 +00:00
package controller
import (
"github.com/gin-gonic/gin"
"kefu/models"
"os"
)
func GetClean(c *gin.Context) {
//初始化配置项
models.InitConfig()
//清空memcache
memory.Clean()
c.JSON(200, gin.H{
"code": 200,
"msg": "ok",
})
}
var StopSign = make(chan int)
func GetStop(c *gin.Context) {
StopSign <- 1
c.JSON(200, gin.H{
"code": 200,
"msg": "ok",
})
}
func GetDede(c *gin.Context) {
os.Exit(0)
c.JSON(200, gin.H{
"code": 200,
"msg": "ok",
})
}
func GetDedeInfo(c *gin.Context) {
c.JSON(200, gin.H{
"code": 200,
"msg": "55Sy5pa577ya54Gr5Yek5Yew6K6v6L6+77yI5rex5Zyz77yJ55S15a2Q5ZWG5Yqh5pyJ6ZmQ5YWs5Y+4Cue6s+eojueZu+iusOWPt++8mjkxNDQwMzAwTUE1RkpKNUZYQQrogZTns7vlnLDlnYDvvJrmt7HlnLPluILljZflsbHljLrljZflsbHooZfpgZPljZflhYnnpL7ljLrljZfmtbflpKfpgZMyMzA55Y+35bGx5Lic5aSn5Y6m5Li75qW8QS5CLkPluqdDM+WxggrnlLXor53lj7fnoIHvvJoxNzcyNDczNzc5MArmjojmnYPln5/lkI3vvJrmmoLml6A=",
})
}