Refactor frontend, display tours with cards on ToursPage
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { ProductModel } from "./productModel"
|
||||
import { ShowModel } from "./showModel"
|
||||
|
||||
export class BasketItemModel {
|
||||
id: number = -1
|
||||
quantity: number = 1
|
||||
product: ProductModel = new ProductModel()
|
||||
product: ShowModel = new ShowModel()
|
||||
|
||||
constructor(quantity: number, product: ProductModel) {
|
||||
constructor(quantity: number, product: ShowModel) {
|
||||
this.quantity = quantity
|
||||
this.product = product
|
||||
}
|
||||
|
||||
5
software/src/data/models/cityModel.ts
Normal file
5
software/src/data/models/cityModel.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export class CityModel {
|
||||
id: Number
|
||||
name: String
|
||||
country: String
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
import { CityModel } from "./cityModel"
|
||||
|
||||
export class LocationModel {
|
||||
id: Number
|
||||
name: String
|
||||
address: String
|
||||
city: String
|
||||
city: CityModel
|
||||
image: String
|
||||
}
|
||||
@@ -3,6 +3,5 @@ import { BandModel } from "./bandModel"
|
||||
export class MemberModel {
|
||||
id: Number
|
||||
name: String
|
||||
band: BandModel
|
||||
image: String
|
||||
}
|
||||
@@ -3,7 +3,6 @@ import { BandModel } from "./bandModel"
|
||||
|
||||
export class RatingModel {
|
||||
id: Number
|
||||
account: AccountModel
|
||||
rating: Number
|
||||
band: BandModel
|
||||
}
|
||||
@@ -2,9 +2,9 @@ import { BandModel } from "./bandModel"
|
||||
import { ShowModel } from "./showModel"
|
||||
|
||||
export class TourModel {
|
||||
id: Number
|
||||
name: String
|
||||
id: number
|
||||
name: string
|
||||
offered: boolean
|
||||
band: BandModel
|
||||
offered: Boolean
|
||||
shows: Array<ShowModel>
|
||||
}
|
||||
Reference in New Issue
Block a user