35 lines
1.7 KiB
Go
35 lines
1.7 KiB
Go
package models
|
|
|
|
type MovieDetails struct {
|
|
Title string `json:"Title" bson:"title"`
|
|
Year string `json:"Year" bson:"year"`
|
|
Rated string `json:"Rated" bson:"rated"`
|
|
Released string `json:"Released" bson:"released"`
|
|
Runtime string `json:"Runtime" bson:"runtime"`
|
|
Genre string `json:"Genre" bson:"genre"`
|
|
Director string `json:"Director" bson:"director"`
|
|
Writer string `json:"Writer" bson:"writer"`
|
|
Actors string `json:"Actors" bson:"actors"`
|
|
Plot string `json:"Plot" bson:"plot"`
|
|
Language string `json:"Language" bson:"language"`
|
|
Country string `json:"Country" bson:"country"`
|
|
Awards string `json:"Awards" bson:"awards"`
|
|
Poster string `json:"Poster" bson:"poster"`
|
|
Ratings []MovieDetailsRating `json:"Ratings" bson:"ratings"`
|
|
Metascore string `json:"Metascore" bson:"metascore"`
|
|
ImdbRating string `json:"imdbRating" bson:"imdbRating"`
|
|
ImdbVotes string `json:"imdbVotes" bson:"imdbVotes"`
|
|
ImdbID string `json:"imdbID" bson:"imdbID"`
|
|
Type string `json:"Type" bson:"type"`
|
|
DVD string `json:"DVD" bson:"DVD"`
|
|
BoxOffice string `json:"BoxOffice" bson:"boxOffice"`
|
|
Production string `json:"Production" bson:"production"`
|
|
Website string `json:"Website" bson:"website"`
|
|
Response string `json:"Response" bson:"response"`
|
|
}
|
|
|
|
type MovieDetailsRating struct {
|
|
Source string `json:"Source" bson:"source"`
|
|
Value string `json:"Value" bson:"value"`
|
|
}
|