refactor🎨: 添加登陆验证
This commit is contained in:
1 parent
261e448577
commit
40668581b8
3 files changed
+16
-12
No files matched your search
@@ -23,6 +23,9 @@ func registerSysRoleRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
|
||||
r.PUT("/:id", api.Update)
|
||||
r.DELETE("", api.Delete)
|
||||
}
|
||||
v1.PUT("/role-status", api.Update2Status)
|
||||
v1.PUT("/roledatascope", api.Update2DataScope)
|
||||
r1 := v1.Group("").Use(authMiddleware.MiddlewareFunc())
|
||||
{
|
||||
r1.PUT("/role-status", api.Update2Status)
|
||||
r1.PUT("/roledatascope", api.Update2DataScope)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user