feat: RBAC 基本完成

This commit is contained in:
Blizzard
2025-09-14 21:58:44 +08:00
parent 2ec091bf59
commit 9be75d53fe
35 changed files with 615 additions and 87 deletions
+2
View File
@@ -29,6 +29,7 @@ func Routers() {
{
//无须鉴权的路由
systemRouter.InitAuthRouter(PublicGroup) //登录和验证码不需要鉴权
//systemRouter.InitMenuRouter(PublicGroup)
}
{
@@ -36,6 +37,7 @@ func Routers() {
systemRouter.InitUserRouter(NeedAuthGroup) //用户相关
systemRouter.InitClientRouter(NeedAuthGroup) //客户端相关
systemRouter.InitRoleRouter(NeedAuthGroup) //角色相关
systemRouter.InitMenuRouter(NeedAuthGroup) //菜单相关
}
address := fmt.Sprintf(":%d", global.Config.System.Addr)