feat: 创建产品接口

This commit is contained in:
ilhamtahir committed 2025-01-15 17:29:33 +08:00
1 parent 7c34f8b986
commit 8d72401f74
13 files changed
+217 -11

No files matched your search

+2 -4
View File
@@ -1,7 +1,7 @@
import { PetType } from '@/pet-feeder/enum/pet-type';
import { Gender } from '@/core/enum/Gender';
import { PetBodyType } from '@/pet-feeder/enum/pet-body-type';
import { IsNotEmpty } from 'class-validator';
import { IsNotEmpty, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreatePetRequest {
@@ -35,9 +35,7 @@ export class CreatePetRequest {
@ApiProperty()
weight: number;
@IsNotEmpty({
message: '照片不能为空',
})
@IsOptional()
@ApiProperty()
photo: string;