From b0903aca60430fdc2a35e7a5c5f0a885abda9b66 Mon Sep 17 00:00:00 2001 From: tikkhun Date: Wed, 26 Nov 2025 10:42:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=AE=9E=E4=BD=93):=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=AE=9E=E4=BD=93=E5=AD=97=E6=AE=B5=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E5=92=8C=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entity/product.entity.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/entity/product.entity.ts b/src/entity/product.entity.ts index e328725..67fa486 100644 --- a/src/entity/product.entity.ts +++ b/src/entity/product.entity.ts @@ -27,8 +27,8 @@ export class Product { @Column() name: string; - @ApiProperty() - @Column({ default: ''}) + @ApiProperty({ description: '产品中文名称' }) + @Column({ default: '' }) nameCn: string; @ApiProperty({ example: '产品描述', description: '产品描述', type: 'string' }) @@ -39,18 +39,19 @@ export class Product { @Column() categoryId: number; - @ApiProperty() + @ApiProperty({ description: '口味ID' }) @Column() flavorsId: number; - @ApiProperty() + @ApiProperty({ description: '尼古丁强度ID' }) @Column() strengthId: number; - - @ApiProperty() + + @ApiProperty({ description: '湿度' }) @Column() humidity: string; + @ApiProperty({ description: 'sku', type: 'string' }) @Column({ nullable: true }) sku?: string;