feat(FE-42): add Product Category API and form validation schema

This commit is contained in:
rstubryan
2025-10-07 18:56:58 +07:00
parent 4f0e02a93b
commit 3cac49725f
3 changed files with 37 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { BaseMetadata } from '@/types/api/api-general';
export type BaseProductCategory = {
id: number;
code: string;
name: string;
};
export type ProductCategory = BaseMetadata & BaseProductCategory;
export type CreateProductCategoryPayload = {
code: string;
name: string;
};
export type UpdateProductCategoryPayload = CreateProductCategoryPayload;