import { TraceableVo } from '@/core/vo/traceable.vo'; import { ApiProperty, ApiSchema } from '@nestjs/swagger'; import { PetType } from '@/pet-feeder/enum/pet-type'; import { Gender } from '@/core/enum/Gender'; import { PetBodyType } from '@/pet-feeder/enum/pet-body-type'; @ApiSchema({ name: 'Pet', }) export class PetVo extends TraceableVo { @ApiProperty() name: string; @ApiProperty() type: PetType; @ApiProperty() gender: Gender; @ApiProperty() birthday: string; @ApiProperty() weight: number; @ApiProperty() photo: string; @ApiProperty() isActive: boolean; @ApiProperty() isPregnant: boolean; // 是否绝育 @ApiProperty() isSterilization: boolean; // 是否在哺乳 @ApiProperty() isLactation: boolean; @ApiProperty() bodyType: PetBodyType; }