2023-12-17 11:47:55 +01:00
|
|
|
package movie
|
|
|
|
|
|
|
|
type Movie struct {
|
|
|
|
ID string `json:"id"`
|
2023-12-22 16:31:40 +01:00
|
|
|
TMDBID int64 `json:"tmdbID"`
|
2023-12-17 11:47:55 +01:00
|
|
|
IMDBID string `json:"imdbID"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
EnglishTitle string `json:"englishTitle"`
|
|
|
|
Year int `json:"year"`
|
|
|
|
Directors []string `json:"directors"`
|
|
|
|
WatchedOn string `json:"watchedOn"`
|
|
|
|
Rating int `json:"rating"`
|
2023-12-22 16:31:40 +01:00
|
|
|
Summary string `json:"summary"`
|
2023-12-17 11:47:55 +01:00
|
|
|
Comment string `json:"comment"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MovieRepository interface {
|
|
|
|
Store(movie *Movie) error
|
|
|
|
FindOne(id string) (*Movie, error)
|
|
|
|
FindAll() ([]*Movie, error)
|
|
|
|
Delete(id string) error
|
|
|
|
}
|