feat:完善项目
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user