feat: favorite actors top-5 stat in profile trends
All checks were successful
CI / Check / Test (push) Successful in 1h5m14s

This commit is contained in:
2026-08-09 20:59:18 +02:00
parent d282e8ea7e
commit 4d221e60de
13 changed files with 297 additions and 10 deletions

View File

@@ -60,6 +60,15 @@ pub struct DirectorStatDto {
pub count: i64,
}
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]
pub struct ActorStatDto {
pub name: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub profile_path: Option<String>,
pub movie_count: u32,
pub score: f64,
}
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]
pub struct GenreStatDto {
pub genre: String,
@@ -80,6 +89,7 @@ pub struct UserTrendsDto {
pub top_genres: Vec<GenreStatDto>,
pub rating_distribution: [i64; 5],
pub watch_medium_distribution: Vec<WatchMediumStatDto>,
pub top_actors: Vec<ActorStatDto>,
}
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]