feat: update product entity and request to include nutritional values

This commit is contained in:
ilhamtahir committed 2025-02-17 05:28:49 +08:00
1 parent 73ac0f8049
commit 99a37cd2ff
5 files changed
+77 -17

No files matched your search

+17 -6
View File
@@ -1,9 +1,6 @@
import { BaseVo } from '@/core/vo/base.vo';
import { ApiProperty, ApiSchema } from '@nestjs/swagger';
import {
ProductCategory,
productCategoryLabels,
} from '@/pet-feeder/enum/product-category';
import { ProductCategory } from '@/pet-feeder/enum/product-category';
@ApiSchema({
name: 'Product',
@@ -21,8 +18,22 @@ export class ProductVo extends BaseVo {
photo: string;
@ApiProperty()
tags: string[];
@ApiProperty()
totalCalories: number;
@ApiProperty()
totalWeight: number;
@ApiProperty()
protein: number;
@ApiProperty()
fat: number;
@ApiProperty()
fiber: number;
@ApiProperty()
ash: number;
@ApiProperty()
moisture: number;
}