feat: 创建产品接口

This commit is contained in:
ilhamtahir committed 2025-01-15 17:29:33 +08:00
1 parent 7c34f8b986
commit 8d72401f74
13 files changed
+217 -11

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { BaseVo } from '@/core/vo/base.vo';
import { ApiProperty, ApiSchema } from '@nestjs/swagger';
@ApiSchema({
name: 'Product',
})
export class ProductVo extends BaseVo {
@ApiProperty()
name: string;
@ApiProperty()
photo: string;
@ApiProperty()
tags: string[];
@ApiProperty()
totalCalories: number;
@ApiProperty()
totalWeight: number;
}