@@ -45,9 +45,15 @@ export class CreateStoreDto {
|
||||
@IsString()
|
||||
contactPhone?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
categoryId: string;
|
||||
categoryId?: string;
|
||||
|
||||
/** 多选二级分类;至少选一项 */
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
categoryIds?: string[];
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@@ -240,6 +246,12 @@ export class UpdateStoreDto {
|
||||
@IsString()
|
||||
categoryId?: string;
|
||||
|
||||
/** 多选二级分类;传此项时覆盖 categoryId */
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
categoryIds?: string[];
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
|
||||
Reference in New Issue
Block a user