feat(实体): 完善产品实体字段描述和注释

This commit is contained in:
tikkhun 2025-11-26 10:42:03 +08:00
parent 927857a795
commit b0903aca60
1 changed files with 7 additions and 6 deletions

View File

@ -27,7 +27,7 @@ export class Product {
@Column()
name: string;
@ApiProperty()
@ApiProperty({ description: '产品中文名称' })
@Column({ default: '' })
nameCn: 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;