feat:完善项目

This commit is contained in:
henry
2021-11-08 15:52:46 +08:00
parent 1502076841
commit 1cc95fb5ca
16 changed files with 154 additions and 64 deletions

View File

@ -46,8 +46,9 @@ func (this *Router) registerAPI() {
// Websocket socket接口管理
{
_api := new(api.Websocket)
v1.GET("/ws", _api.Ws)
v1.GET("/pong", _api.Pong)
this.handler.GET("/ws", _api.Ws)
this.handler.GET("/pong", _api.Pong)
this.handler.GET("/publish", _api.Publish)
}
// Captcha 验证码接口管理
v1.GET("/captcha", new(api.Captcha).Captcha)
@ -68,6 +69,8 @@ func (this *Router) registerAPI() {
configV1.POST("/edit", _api.Edit)
configV1.GET("/area", _api.Area)
configV1.POST("/breakdown", _api.Breakdown)
configV1.POST("/breakdown/add", _api.BreakdownAdd)
configV1.POST("/breakdown/edit", _api.BreakdownEdit)
}
// Tenant 租户单位管理
tenantV1 := v1.Group("/tenant")