feat:完善项目

This commit is contained in:
henry
2021-11-04 16:16:57 +08:00
parent 42c6fb01bb
commit c41adc075a
10 changed files with 74 additions and 28 deletions

View File

@ -52,6 +52,12 @@ func (this *Router) registerAPI() {
accountV1.POST("/login", _api.Login)
accountV1.POST("/logout", _api.Logout)
}
// Config 配置管理
configV1 := v1.Group("/config")
{
_api := new(api.Config)
configV1.GET("/area", _api.Area)
}
// Tenant 租户单位管理
tenantV1 := v1.Group("/tenant")
{
@ -73,7 +79,7 @@ func (this *Router) registerAPI() {
menuV1 := v1.Group("/menu")
{
_api := new(api.Menu)
menuV1.POST("/list", _api.List)
menuV1.GET("/list", _api.List)
menuV1.POST("/add", _api.Add)
menuV1.POST("/edit", _api.Edit)
menuV1.POST("/status", _api.Status)