mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-28 08:40:17 +08:00
refactor(projects): remove enum
This commit is contained in:
3
src/typings/business.d.ts
vendored
3
src/typings/business.d.ts
vendored
@@ -5,9 +5,8 @@ declare namespace Auth {
|
||||
* - super: 超级管理员(该权限具有所有路由数据)
|
||||
* - admin: 管理员
|
||||
* - user: 用户
|
||||
* - custom: 自定义角色
|
||||
*/
|
||||
type RoleType = keyof typeof import('@/enum').EnumUserRole;
|
||||
type RoleType = 'super' | 'admin' | 'user';
|
||||
|
||||
/** 用户信息 */
|
||||
interface UserInfo {
|
||||
|
||||
Reference in New Issue
Block a user