add: crud all product module

This commit is contained in:
ilham
2021-12-06 22:29:38 +07:00
parent 659c7e4de8
commit 6622501b61
7 changed files with 237 additions and 17 deletions

View File

@@ -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;
}