Files
backend-service/src/pet-feeder/vo/pet.vo.ts
T
2024-12-31 20:08:30 +08:00

36 lines
802 B
TypeScript

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;
}