add: crud all product module
This commit is contained in:
4
src/product/dto/product/update-product.dto.ts
Normal file
4
src/product/dto/product/update-product.dto.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { PartialType } from '@nestjs/mapped-types';
|
||||
import { CreateProductDto } from './create-product.dto';
|
||||
|
||||
export class UpdateProductDto extends PartialType(CreateProductDto) {}
|
||||
@@ -2,6 +2,9 @@ import { IsNotEmpty, IsUUID } from 'class-validator';
|
||||
import { CreateCategoriesProductDto } from '../categories/create-categories-product.dto';
|
||||
|
||||
export class CreateSubCategoriesProductDto extends CreateCategoriesProductDto {
|
||||
@IsNotEmpty()
|
||||
name: string;
|
||||
|
||||
@IsUUID()
|
||||
categoryId: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user