mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-09 12:16:50 +00:00
61 lines
1.1 KiB
Go
61 lines
1.1 KiB
Go
package config
|
|
|
|
type Host struct {
|
|
Name string
|
|
Address string
|
|
City string
|
|
ZipCode string
|
|
PhoneNumber string
|
|
Email string
|
|
InvoicePrefix string
|
|
PaymentMethods []string
|
|
Platforms []string
|
|
Items []HostItem
|
|
CustomerSeed int
|
|
}
|
|
|
|
type HostItem struct {
|
|
Name string
|
|
Price float64
|
|
}
|
|
|
|
func NewHost() *Host {
|
|
return &Host{
|
|
Name: "VillaFleurie",
|
|
Address: "4 rue Gerty Archimede",
|
|
City: "Le Gosier",
|
|
ZipCode: "97190",
|
|
PhoneNumber: "+590 690 44 15 30",
|
|
Email: "location.villafleurie@gmail.com",
|
|
CustomerSeed: 239,
|
|
InvoicePrefix: "VFNI",
|
|
PaymentMethods: []string{"Card", "Cash", "Cheque", "Transfer"},
|
|
Platforms: []string{"Booking", "AirBnb", "TripAdvisor", "Other"},
|
|
Items: []HostItem{
|
|
{
|
|
Name: "T2",
|
|
Price: 59.0,
|
|
},
|
|
{
|
|
Name: "T3",
|
|
Price: 80.0,
|
|
},
|
|
{
|
|
Name: "Airport",
|
|
Price: 25.0,
|
|
},
|
|
{
|
|
Name: "Port",
|
|
Price: 20.0,
|
|
},
|
|
{
|
|
Name: "Transport",
|
|
Price: 20.0,
|
|
},
|
|
{
|
|
Name: "Taxes",
|
|
Price: 1.5,
|
|
},
|
|
},
|
|
}
|
|
}
|