feat(实体): 完善产品实体字段描述和注释
This commit is contained in:
parent
927857a795
commit
b0903aca60
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue