feat: first commit
This commit is contained in:
14
server/src/system/config/dto/create-config.dto.ts
Normal file
14
server/src/system/config/dto/create-config.dto.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class CreateConfigDto {
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@IsOptional()
|
||||
remark: string;
|
||||
}
|
||||
3
server/src/system/config/dto/query-list.dto.ts
Normal file
3
server/src/system/config/dto/query-list.dto.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { PaginationDto } from 'src/common/dto/pagination.dto';
|
||||
|
||||
export class QueryListDto extends PaginationDto {}
|
||||
6
server/src/system/config/dto/update-config.dto.ts
Normal file
6
server/src/system/config/dto/update-config.dto.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { OmitType, PartialType } from '@nestjs/mapped-types';
|
||||
import { CreateConfigDto } from './create-config.dto';
|
||||
|
||||
export class UpdateConfigDto extends PartialType(
|
||||
OmitType(CreateConfigDto, ['key'] as const),
|
||||
) {}
|
||||
Reference in New Issue
Block a user