mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-14 07:45:39 +01:00
mvoe syspref to backend
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { IsEnum, IsNotEmpty, IsString } from 'class-validator';
|
||||
import { SysPreferences } from '../dto/syspreferences.dto';
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
import { EntityID } from '../validators/entity-id.validator';
|
||||
|
||||
export class ESysPreference {
|
||||
@@ -7,8 +6,8 @@ export class ESysPreference {
|
||||
id?: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsEnum(SysPreferences)
|
||||
key: SysPreferences;
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user