feat: 喂养计划
This commit is contained in:
1 parent
79255480bc
commit
32f8aca49e
11 files changed
+217
-3
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { BaseVo } from '@/core/vo/base.vo';
|
||||
import { ApiProperty, ApiSchema } from '@nestjs/swagger';
|
||||
import { ProductVo } from '@/pet-feeder/vo/product.vo';
|
||||
|
||||
@ApiSchema({
|
||||
name: 'FeedingPlanProduct',
|
||||
})
|
||||
export class FeedingPlanProductVo extends BaseVo {
|
||||
@ApiProperty()
|
||||
dailyUsageWeight: number;
|
||||
|
||||
@ApiProperty()
|
||||
product: ProductVo;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { BaseVo } from '@/core/vo/base.vo';
|
||||
import { ApiProperty, ApiSchema } from '@nestjs/swagger';
|
||||
import { FeedingGoal } from '@/pet-feeder/enum/feeding-goal';
|
||||
import { PetVo } from '@/pet-feeder/vo/pet.vo';
|
||||
import { FeedingPlanProduct } from '@/pet-feeder/entity/feeding-plan-product.entity';
|
||||
import { FeedingPlanProductVo } from '@/pet-feeder/vo/feeding-plan-product.vo';
|
||||
|
||||
@ApiSchema({
|
||||
name: 'FeedingPlan',
|
||||
})
|
||||
export class FeedingPlanVo extends BaseVo {
|
||||
@ApiProperty()
|
||||
targetWeight: number;
|
||||
|
||||
@ApiProperty()
|
||||
feedingGoal: FeedingGoal;
|
||||
|
||||
@ApiProperty()
|
||||
pet: PetVo;
|
||||
|
||||
@ApiProperty()
|
||||
feedingPlanProducts: FeedingPlanProductVo[];
|
||||
}
|
||||
Reference in new issue
Block a user