FEAT: internationalization of permissions

This commit is contained in:
Gabriel Rosa
2022-07-08 19:03:32 -03:00
parent 4cff593695
commit 730fab8ed1
14 changed files with 469 additions and 290 deletions
+30
View File
@@ -0,0 +1,30 @@
import { ApiProperty } from '@nestjs/swagger';
export class PermissionDto {
@ApiProperty()
name: string;
@ApiProperty()
id: number;
}
export class PermissionGroup {
@ApiProperty()
title: string;
@ApiProperty({ type: [PermissionDto] })
permissions: PermissionDto[];
}
export class Permission {
@ApiProperty()
id: string;
@ApiProperty()
seqid: number;
@ApiProperty()
name: string;
@ApiProperty()
claim: string;
@ApiProperty()
createdAt: string;
@ApiProperty()
updatedAt: string;
}