refactor(projects): 精简版+动态路由权限初步

This commit is contained in:
Soybean
2022-01-03 22:20:10 +08:00
parent 7a0648dba5
commit de2057f141
354 changed files with 2053 additions and 22117 deletions

21
src/typings/business/auth.d.ts vendored Normal file
View File

@@ -0,0 +1,21 @@
/** 用户相关模块 */
declare namespace Auth {
/** 用户信息 */
interface UserInfo {
/** 用户id */
userId: string;
/** 用户名 */
userName: string;
/** 用户手机号 */
userPhone: string;
}
/**
* 用户角色类型
* - super: 超级管理员
* - admin: 管理员
* - test: 测试
* - visitor: 游客
*/
type RoleType = 'super' | 'admin' | 'test' | 'visitor';
}