diff --git a/mock/user/index.ts b/mock/user/index.ts index 12a1ccb..efc289d 100644 --- a/mock/user/index.ts +++ b/mock/user/index.ts @@ -10,18 +10,21 @@ const List: { password: string role: string roleId: string + permissions: string | string[] }[] = [ { username: 'admin', password: 'admin', role: 'admin', - roleId: '1' + roleId: '1', + permissions: '*.*.*' }, { username: 'test', password: 'test', role: 'test', - roleId: '2' + roleId: '2', + permissions: ['example:dialog:create', 'example:dialog:delete'] } ] diff --git a/src/api/login/types.ts b/src/api/login/types.ts index 12730b2..446a023 100644 --- a/src/api/login/types.ts +++ b/src/api/login/types.ts @@ -8,4 +8,5 @@ export type UserType = { password: string role: string roleId: string + permissions: string | string[] }