another one
This commit is contained in:
27
frontend/style/components/product.ts
Normal file
27
frontend/style/components/product.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
export interface Review {
|
||||
id: number
|
||||
userId: number
|
||||
rating: number
|
||||
comment: string
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
export interface Seller {
|
||||
id: number
|
||||
name: string
|
||||
shopName: string
|
||||
}
|
||||
|
||||
export interface Product {
|
||||
id: number
|
||||
title: string
|
||||
price: number
|
||||
description: string
|
||||
image_url: string
|
||||
category?: string
|
||||
brand?: string
|
||||
licenseType?: string
|
||||
reviews?: Review[]
|
||||
seller?: Seller
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user