41 lines
657 B
TypeScript
41 lines
657 B
TypeScript
export interface CategoryType {
|
|
id: number;
|
|
name: string;
|
|
image: string;
|
|
description: string;
|
|
have_sub_category: boolean;
|
|
}
|
|
|
|
export interface SubCategoryType {
|
|
id: number;
|
|
name: string;
|
|
category: number;
|
|
image: string;
|
|
}
|
|
|
|
export interface ProductsPageTypes {
|
|
id: number;
|
|
name: string;
|
|
image: string;
|
|
}
|
|
|
|
export interface ProductImage {
|
|
id: number;
|
|
product: number;
|
|
image: string;
|
|
is_main: boolean;
|
|
order: number;
|
|
}
|
|
|
|
export interface ProductDetail {
|
|
id: number;
|
|
name: string;
|
|
articular: string;
|
|
status: string;
|
|
description: string;
|
|
size: number;
|
|
price: string;
|
|
features: string[];
|
|
images: ProductImage[];
|
|
}
|