返回 AiToEarn
multi-image.dto.ts
根目录 / project / aitoearn-electron / server / src / common / dto / multi-image.dto.ts
1 import { ApiProperty } from '@nestjs/swagger';
2 import { IsNumber, IsOptional, IsString } from 'class-validator';
3
4 export class MultiImage {
5 @ApiProperty({ description: '图片地址' })
6 @IsString()
7 url: string;
8
9 @ApiProperty({ description: '图片名称' })
10 @IsString()
11 name: string;
12
13 @ApiProperty({ description: '图片大小', required: false })
14 @IsNumber()
15 @IsOptional()
16 size?: number;
17 }
18
18 lines TYPESCRIPT