perf: 登录后获取permissions
This commit is contained in:
parent
753b73972b
commit
db223d50d3
|
@ -10,18 +10,21 @@ const List: {
|
||||||
password: string
|
password: string
|
||||||
role: string
|
role: string
|
||||||
roleId: string
|
roleId: string
|
||||||
|
permissions: string | string[]
|
||||||
}[] = [
|
}[] = [
|
||||||
{
|
{
|
||||||
username: 'admin',
|
username: 'admin',
|
||||||
password: 'admin',
|
password: 'admin',
|
||||||
role: 'admin',
|
role: 'admin',
|
||||||
roleId: '1'
|
roleId: '1',
|
||||||
|
permissions: '*.*.*'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
username: 'test',
|
username: 'test',
|
||||||
password: 'test',
|
password: 'test',
|
||||||
role: 'test',
|
role: 'test',
|
||||||
roleId: '2'
|
roleId: '2',
|
||||||
|
permissions: ['example:dialog:create', 'example:dialog:delete']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -8,4 +8,5 @@ export type UserType = {
|
||||||
password: string
|
password: string
|
||||||
role: string
|
role: string
|
||||||
roleId: string
|
roleId: string
|
||||||
|
permissions: string | string[]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue