mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-26 15:00:16 +08:00
feat(projects): 迁移登录完成
This commit is contained in:
22
src/typings/business/auth.d.ts
vendored
22
src/typings/business/auth.d.ts
vendored
@@ -1,15 +1,5 @@
|
||||
/** 用户相关模块 */
|
||||
declare namespace Auth {
|
||||
/** 用户信息 */
|
||||
interface UserInfo {
|
||||
/** 用户id */
|
||||
userId: string;
|
||||
/** 用户名 */
|
||||
userName: string;
|
||||
/** 用户手机号 */
|
||||
userPhone: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户角色类型
|
||||
* - super: 超级管理员
|
||||
@@ -18,4 +8,16 @@ declare namespace Auth {
|
||||
* - visitor: 游客
|
||||
*/
|
||||
type RoleType = 'super' | 'admin' | 'test' | 'visitor';
|
||||
|
||||
/** 用户信息 */
|
||||
interface UserInfo {
|
||||
/** 用户id */
|
||||
userId: string;
|
||||
/** 用户名 */
|
||||
userName: string;
|
||||
/** 用户手机号 */
|
||||
userPhone: string;
|
||||
/** 用户角色类型 */
|
||||
userRole: RoleType;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user