feat(user.ts):用户登录接口
This commit is contained in:
15
src/store/interface.ts
Normal file
15
src/store/interface.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// 接口类型声明
|
||||
export interface UserState {
|
||||
token: string,
|
||||
name: string,
|
||||
avatar: string,
|
||||
introduction: string,
|
||||
roles: string[],
|
||||
perms: string[]
|
||||
}
|
||||
|
||||
|
||||
// 顶级类型声明
|
||||
export interface RootStateTypes {
|
||||
user: UserState
|
||||
}
|
||||
Reference in New Issue
Block a user