15 lines
230 B
TypeScript
15 lines
230 B
TypeScript
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
|
|
export class CreateConfigDto {
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
key: string;
|
|
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
value: string;
|
|
|
|
@IsOptional()
|
|
remark: string;
|
|
}
|