feat(user.ts):用户登录接口

This commit is contained in:
有来技术
2021-11-18 23:57:42 +08:00
parent 6d911771dc
commit a4fe3987c3
4 changed files with 118 additions and 14 deletions

15
src/store/interface.ts Normal file
View 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
}