feat: 创建产品接口
This commit is contained in:
1 parent
7c34f8b986
commit
8d72401f74
13 files changed
+217
-11
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user