feat(实体): 完善产品实体字段描述和注释
This commit is contained in:
parent
927857a795
commit
b0903aca60
|
|
@ -27,8 +27,8 @@ export class Product {
|
||||||
@Column()
|
@Column()
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@ApiProperty()
|
@ApiProperty({ description: '产品中文名称' })
|
||||||
@Column({ default: ''})
|
@Column({ default: '' })
|
||||||
nameCn: string;
|
nameCn: string;
|
||||||
|
|
||||||
@ApiProperty({ example: '产品描述', description: '产品描述', type: 'string' })
|
@ApiProperty({ example: '产品描述', description: '产品描述', type: 'string' })
|
||||||
|
|
@ -39,18 +39,19 @@ export class Product {
|
||||||
@Column()
|
@Column()
|
||||||
categoryId: number;
|
categoryId: number;
|
||||||
|
|
||||||
@ApiProperty()
|
@ApiProperty({ description: '口味ID' })
|
||||||
@Column()
|
@Column()
|
||||||
flavorsId: number;
|
flavorsId: number;
|
||||||
|
|
||||||
@ApiProperty()
|
@ApiProperty({ description: '尼古丁强度ID' })
|
||||||
@Column()
|
@Column()
|
||||||
strengthId: number;
|
strengthId: number;
|
||||||
|
|
||||||
@ApiProperty()
|
@ApiProperty({ description: '湿度' })
|
||||||
@Column()
|
@Column()
|
||||||
humidity: string;
|
humidity: string;
|
||||||
|
|
||||||
|
|
||||||
@ApiProperty({ description: 'sku', type: 'string' })
|
@ApiProperty({ description: 'sku', type: 'string' })
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
sku?: string;
|
sku?: string;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue