feat:完善信息,增加socket

This commit is contained in:
henry
2022-01-27 14:50:52 +08:00
parent 0368be6f11
commit 4ae37b9b4d
30 changed files with 325 additions and 92 deletions

View File

@ -161,6 +161,11 @@ func registerAdminAPI(app *gin.Engine) {
apiPrefix + "/v1/account/login",
apiPrefix + "/v1/account/logout",
}...)))
{
_api := new(api.Websocket)
app.GET("/ws", _api.Ws(config.RedisKeyForAccountAdmin, session.NewAdmin()))
app.GET("/ws/publish", _api.Publish)
}
// Captcha 验证码
v1.GET("/captcha", new(api1.Captcha).Captcha)
// Upload 上传管理