mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-19 23:49:09 +00:00
FEAT: internationalization of permissions
This commit is contained in:
@@ -1,19 +1,5 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class Permission {
|
||||
@ApiProperty()
|
||||
id: string;
|
||||
@ApiProperty()
|
||||
seqid: number;
|
||||
@ApiProperty()
|
||||
name: string;
|
||||
@ApiProperty()
|
||||
claim: string;
|
||||
@ApiProperty()
|
||||
createdAt: string;
|
||||
@ApiProperty()
|
||||
updatedAt: string;
|
||||
}
|
||||
import { Permission } from 'src/modules/permissions/dto/entities';
|
||||
export class Role {
|
||||
@ApiPropertyOptional({ type: [Permission] })
|
||||
permissions: Permission[];
|
||||
|
||||
Reference in New Issue
Block a user