Closed denniarems closed 2 years ago
Hi @denniarems can you give examples of what the files would look like as these type of files vary according to different databases
create-role.dto.ts
import { ApiProperty } from '@nestjs/swagger'
import { IsEmail, IsMobilePhone, IsNotEmpty, IsNumber, IsOptional, IsPhoneNumber, IsString, MaxLength, MinLength } from 'class-validator'
export class CreateRoleDto {
@ApiProperty({ description: '名称', required: true })
@IsString()
name: string
@ApiProperty({ description: '部门ID', required: false })
@IsNumber()
dept_id: number
@ApiProperty({ description: '备注', required: false })
@IsString()
remark: string
}
like repository,dto,entity......