33 lines
955 B
Go
33 lines
955 B
Go
package ytsclient
|
|
|
|
type ListResponse struct {
|
|
Status string `json:"status"`
|
|
StatusMessage string `json:"status_message"`
|
|
Data struct {
|
|
MovieCount int `json:"movie_count"`
|
|
Limit int `json:"limit"`
|
|
PageNumber int `json:"page_number"`
|
|
Movies []Movie `json:"movies"`
|
|
} `json:"data"`
|
|
Meta struct {
|
|
ServerTime int `json:"server_time"`
|
|
ServerTimezone string `json:"server_timezone"`
|
|
APIVersion int `json:"api_version"`
|
|
ExecutionTime string `json:"execution_time"`
|
|
} `json:"@meta"`
|
|
}
|
|
|
|
type MovieResponse struct {
|
|
Status string `json:"status"`
|
|
StatusMessage string `json:"status_message"`
|
|
Data struct {
|
|
Movie Movie `json:"movie"`
|
|
} `json:"data"`
|
|
Meta struct {
|
|
ServerTime int `json:"server_time"`
|
|
ServerTimezone string `json:"server_timezone"`
|
|
APIVersion int `json:"api_version"`
|
|
ExecutionTime string `json:"execution_time"`
|
|
} `json:"@meta"`
|
|
}
|