add role api

This commit is contained in:
rubikscraft
2022-03-12 16:25:15 +01:00
parent 0ad444f43b
commit 1febcd8147
14 changed files with 212 additions and 19 deletions

View File

@@ -1,8 +1,9 @@
import { IsEnum, IsNotEmpty, IsOptional } from 'class-validator';
import { IsEnum, IsInt, IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { SysPreferences } from '../dto/syspreferences.dto';
export class ESysPreference {
@IsOptional()
@IsInt()
id?: number;
@IsNotEmpty()
@@ -10,5 +11,6 @@ export class ESysPreference {
key: SysPreferences;
@IsNotEmpty()
@IsString()
value: string;
}