CategoryStore, API calls

This commit is contained in:
2024-09-18 16:21:07 +02:00
parent 9ee344f45f
commit 7b245da959
11 changed files with 83 additions and 52 deletions

View File

@@ -8,6 +8,4 @@ export class ProductModel {
discount: number = 0
rating: number = 1
imageUrl: string = ""
createdAt: string = ""
updatedAt: string = ""
}

View File

@@ -0,0 +1,13 @@
import { CategoryModel } from "./categoryModel"
export class ProductWithCategoryModel {
id: number = -1
brand: string
name: string
description: string = ""
category: CategoryModel
price: number = 0
discount: number = 0
rating: number = 1
imageUrl: string = ""
}