mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 15:51:09 +00:00
init
This commit is contained in:
35
internal/model/model.go
Normal file
35
internal/model/model.go
Normal file
@@ -0,0 +1,35 @@
|
||||
package model
|
||||
|
||||
// Movie represents a movie from the Jellyfin library.
|
||||
type Movie struct {
|
||||
Name string
|
||||
Year int
|
||||
IMDbID string
|
||||
TMDbID string
|
||||
Genres []string
|
||||
CommunityRating float64
|
||||
IsFavorite bool
|
||||
PlayCount int
|
||||
}
|
||||
|
||||
// TMDbMovie is a movie record returned by the TMDb API.
|
||||
type TMDbMovie struct {
|
||||
ID int
|
||||
Title string
|
||||
Year int
|
||||
}
|
||||
|
||||
// MovieSuggestion is a raw suggestion from the LLM or TMDb fallback.
|
||||
type MovieSuggestion struct {
|
||||
Title string `json:"title"`
|
||||
Year int `json:"year"`
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
// Recommendation is a resolved movie recommendation ready to return to the user.
|
||||
type Recommendation struct {
|
||||
Title string `json:"title"`
|
||||
Year int `json:"year"`
|
||||
TMDbID int `json:"tmdb_id"`
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
Reference in New Issue
Block a user