mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:04:53 +00:00
12 lines
288 B
TypeScript
12 lines
288 B
TypeScript
import { PermissionType } from '@app/common/constants/permission-type.enum';
|
|
import { IsEnum, IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
export class PermissionTypeDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public uuid: string;
|
|
|
|
@IsEnum(PermissionType)
|
|
public type: PermissionType;
|
|
}
|