feat: 产品管理相关接口
This commit is contained in:
1 parent
e0cf2c00d6
commit
79255480bc
7 files changed
+42
-1
No files matched your search
@@ -1,5 +1,9 @@
|
||||
import { BaseVo } from '@/core/vo/base.vo';
|
||||
import { ApiProperty, ApiSchema } from '@nestjs/swagger';
|
||||
import {
|
||||
ProductCategory,
|
||||
productCategoryLabels,
|
||||
} from '@/pet-feeder/enum/product-category';
|
||||
|
||||
@ApiSchema({
|
||||
name: 'Product',
|
||||
@@ -7,6 +11,12 @@ import { ApiProperty, ApiSchema } from '@nestjs/swagger';
|
||||
export class ProductVo extends BaseVo {
|
||||
@ApiProperty()
|
||||
name: string;
|
||||
|
||||
@ApiProperty({
|
||||
example: [ProductCategory.DRY_FOOD, ProductCategory.WET_FOOD],
|
||||
})
|
||||
category: string;
|
||||
|
||||
@ApiProperty()
|
||||
photo: string;
|
||||
@ApiProperty()
|
||||
|
||||
Reference in new issue
Block a user