mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): mock权限相关数据优化
This commit is contained in:
6
src/typings/business.d.ts
vendored
6
src/typings/business.d.ts
vendored
@ -4,10 +4,10 @@ declare namespace Auth {
|
||||
* 用户角色类型(前端静态路由用角色类型进行路由权限的控制)
|
||||
* - super: 超级管理员(该权限具有所有路由数据)
|
||||
* - admin: 管理员
|
||||
* - test: 测试
|
||||
* - normal: 普通用户
|
||||
* - user: 用户
|
||||
* - custom: 自定义角色
|
||||
*/
|
||||
type RoleType = 'super' | 'admin' | 'test' | 'normal';
|
||||
type RoleType = keyof typeof import('@/enum').EnumUserRole;
|
||||
|
||||
/** 用户信息 */
|
||||
interface UserInfo {
|
||||
|
Reference in New Issue
Block a user