server/scripts/template/module/dto/find-{{fileName name}}.dto....

14 lines
362 B
Handlebars

import { PaginationDto } from '@/common/response';
import { IntersectionType } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';
export class Find{{upcaseName name}}Dto extends IntersectionType(PaginationDto) {
/**
* 字段描述(Swagger用途)
* @example '示例值'
*/
@IsOptional()
@IsString()
demo?: string;
}