82 lines
2.3 KiB
Go
82 lines
2.3 KiB
Go
package response
|
|
|
|
type ExploreResponse struct {
|
|
ExploreRegions []Region `json:"exploreRegions"`
|
|
ExploreDestinations []Destination `json:"exploreDestinations"`
|
|
MustVisit []MustVisit `json:"mustVisit"`
|
|
}
|
|
|
|
type CurrentLocation struct {
|
|
City string `json:"city"`
|
|
}
|
|
|
|
type Region struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Destination struct {
|
|
Name string `json:"name"`
|
|
ImageURL string `json:"image_url"`
|
|
}
|
|
|
|
type MustVisit struct {
|
|
SiteID int64 `json:"site_id"`
|
|
Name string `json:"name"`
|
|
Region string `json:"region"`
|
|
Rating float64 `json:"rating"`
|
|
ReviewCount int `json:"reviewCount"`
|
|
Price float64 `json:"price"`
|
|
ImageURL string `json:"imageUrl"`
|
|
Regency string `json:"regency"`
|
|
}
|
|
|
|
type SearchResponse struct {
|
|
Offset int `json:"offset"`
|
|
Total int `json:"total"`
|
|
Limit int `json:"limit"`
|
|
Data []SiteSeach `json:"data"`
|
|
}
|
|
|
|
type SiteSeach struct {
|
|
SiteID int64 `json:"site_id"`
|
|
Name string `json:"name"`
|
|
Region string `json:"region"`
|
|
Rating float64 `json:"rating"`
|
|
ReviewCount int `json:"reviewCount"`
|
|
Price float64 `json:"price"`
|
|
ImageURL string `json:"imageUrl"`
|
|
Regency string `json:"regency"`
|
|
}
|
|
|
|
type SearchSiteByIDResponse struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
Image string `json:"image"`
|
|
Address string `json:"address"`
|
|
LocationLink string `json:"location_link"`
|
|
Description string `json:"description"`
|
|
Highlight string `json:"highlight"`
|
|
ContactPerson string `json:"contact_person"`
|
|
TnC string `json:"tn_c"`
|
|
AdditionalInfo string `json:"additional_info"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type SearchProductSiteByIDResponse struct {
|
|
ID int64 `json:"id"`
|
|
SiteID int64 `json:"site_id"`
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Price float64 `json:"price"`
|
|
IsWeekendTicket bool `json:"is_weekend_ticket"`
|
|
IsSeasonTicket bool `json:"is_season_ticket"`
|
|
Description string `json:"description"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
}
|
|
|
|
type SearchProductSiteResponse struct {
|
|
Product []SearchProductSiteByIDResponse `json:"product"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
}
|