mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-28 07:39:07 +00:00
50 lines
922 B
TypeScript
50 lines
922 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class PermissionGroupPermission {
|
|
@ApiProperty()
|
|
name: string;
|
|
@ApiProperty()
|
|
id: number;
|
|
}
|
|
|
|
export class PermissionGroup {
|
|
@ApiProperty()
|
|
title: string;
|
|
@ApiProperty({ type: [PermissionGroupPermission] })
|
|
permissions: PermissionGroupPermission[];
|
|
}
|
|
|
|
export class Permission {
|
|
@ApiProperty()
|
|
id: string;
|
|
@ApiProperty()
|
|
seqid: number;
|
|
@ApiProperty()
|
|
name: string;
|
|
@ApiProperty()
|
|
claim: string;
|
|
@ApiProperty()
|
|
createdAt: string;
|
|
@ApiProperty()
|
|
updatedAt: string;
|
|
}
|
|
|
|
export class PermissionDto {
|
|
@ApiProperty()
|
|
id: number;
|
|
@ApiProperty()
|
|
seqid: number;
|
|
@ApiProperty()
|
|
name: string;
|
|
@ApiProperty()
|
|
claim: string;
|
|
@ApiProperty()
|
|
createdAt: string;
|
|
@ApiProperty()
|
|
updatedAt: string;
|
|
}
|
|
export class GetPublicPermissionsRes {
|
|
@ApiProperty({ type: [PermissionGroup] })
|
|
permissionGroups: PermissionGroup[];
|
|
}
|