25 lines
566 B
TypeScript
25 lines
566 B
TypeScript
import { AccountTypeEnum } from '@src/accounts/account.components';
|
|
|
|
export interface Permission {
|
|
c: (AccountTypeEnum | string)[];
|
|
r: (AccountTypeEnum | string)[];
|
|
w: (AccountTypeEnum | string)[];
|
|
d: (AccountTypeEnum | string)[];
|
|
}
|
|
export interface PermissionDB {
|
|
r: AccountTypeEnum[];
|
|
w: AccountTypeEnum[];
|
|
d: AccountTypeEnum[];
|
|
}
|
|
|
|
export interface PermissionIN {
|
|
operation: 'add' | 'remove';
|
|
field: 'r' | 'w' | 'd';
|
|
newPerm: string;
|
|
}
|
|
|
|
export interface PermissionInfo {
|
|
accountId: string;
|
|
accountGroup: string[];
|
|
}
|