feat: enhance product entity and mapper to calculate total calories based on nutritional values

This commit is contained in:
ilhamtahir committed 2026-01-15 07:01:05 +08:00
1 parent d856dc1887
commit 2dfc1dafec
3 files changed
+91 -10

No files matched your search

+5
View File
@@ -36,4 +36,9 @@ export class ProductVo extends BaseVo {
@ApiProperty()
moisture: number;
@ApiProperty({
description: '产品总能量(kcal),基于ME算法计算',
})
totalCalories: number;
}