CategoryStore, API calls
This commit is contained in:
@@ -8,6 +8,4 @@ export class ProductModel {
|
||||
discount: number = 0
|
||||
rating: number = 1
|
||||
imageUrl: string = ""
|
||||
createdAt: string = ""
|
||||
updatedAt: string = ""
|
||||
}
|
||||
13
software/src/data/models/productWithCategoryModel.ts
Normal file
13
software/src/data/models/productWithCategoryModel.ts
Normal 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 = ""
|
||||
}
|
||||
Reference in New Issue
Block a user