You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
551 B
Go
29 lines
551 B
Go
package data
|
|
|
|
type ListMoviesResponse struct {
|
|
Metadata Metadata `json:"metadata"`
|
|
Movies []*Movie `json:"movies"`
|
|
}
|
|
|
|
type MovieResponse struct {
|
|
Movie *Movie `json:"movie"`
|
|
}
|
|
|
|
type SystemInfo struct {
|
|
Environment string `json:"environment"`
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
type HealthCheckResponse struct {
|
|
Status string `json:"status"`
|
|
SystemInfo SystemInfo `json:"system_info"`
|
|
}
|
|
|
|
type GenericMessageResponse struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type ErrorMessageResponse struct {
|
|
ErrorMessage any `json:"error"`
|
|
}
|