a782d61890
- Implemented CreateProductVariantDto and UpdateProductVariantDto for product variant data transfer. - Developed ProductVariantsController to handle CRUD operations for product variants. - Created ProductVariantsService to interact with the database using Prisma. - Added ProductVariantsModule to encapsulate the product variant feature. - Included response mapping for consistent API responses.
18 lines
313 B
TypeScript
18 lines
313 B
TypeScript
import { Type } from 'class-transformer'
|
|
import { IsBoolean, IsOptional, IsString } from 'class-validator'
|
|
|
|
export class UpdateStoreDto {
|
|
@IsOptional()
|
|
@IsString()
|
|
name?: string
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
location?: string
|
|
|
|
@IsOptional()
|
|
@Type(() => Boolean)
|
|
@IsBoolean()
|
|
isActive?: boolean
|
|
}
|