MSP-3105 change layout.type.ts and roles.type.ts
This commit is contained in:
1 parent
a380067908
commit
42ee1697c4
8 files changed
+34
-39
No files matched your search
+5
-10
@@ -1,21 +1,16 @@
|
||||
export enum RoleKeys {
|
||||
user = 'user',
|
||||
admin = 'admin'
|
||||
}
|
||||
|
||||
export enum PermissionKeys {
|
||||
export enum PermissionKeysType {
|
||||
read = 'read', // Просмотр страниц
|
||||
write = 'write', // Редактирование страниц
|
||||
}
|
||||
|
||||
export type RoleType = {
|
||||
export interface RoleType {
|
||||
changeMessage?: string
|
||||
createdAt: string
|
||||
description: string
|
||||
externalGroup: string
|
||||
id: number
|
||||
name: string
|
||||
permissions: PermissionKeys[]
|
||||
permissions: PermissionKeysType[]
|
||||
updatedAt: string
|
||||
immutable: boolean
|
||||
exclusive: boolean
|
||||
@@ -23,7 +18,7 @@ export type RoleType = {
|
||||
|
||||
export type NewRoleType = Omit<RoleType, 'id' | 'createdAt' | 'updatedAt'>
|
||||
|
||||
export type PermissionType = {
|
||||
key: PermissionKeys
|
||||
export interface PermissionType {
|
||||
key: PermissionKeysType
|
||||
name: string
|
||||
}
|
||||
Reference in new issue
Block a user