25 lines
773 B
Go
25 lines
773 B
Go
package response
|
|
|
|
type Product struct {
|
|
ID int64 `json:"id"`
|
|
PartnerID int64 `json:"partner_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"`
|
|
Status string `json:"status"`
|
|
Description string `json:"description"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
Stock int64 `json:"stock"`
|
|
}
|
|
|
|
type ProductList struct {
|
|
Products []Product `json:"products"`
|
|
Total int64 `json:"total"`
|
|
Limit int `json:"limit"`
|
|
Offset int `json:"offset"`
|
|
}
|