feat: Implement and display AI-powered course recommendations with a new API endpoint and frontend UI.

This commit is contained in:
2026-01-18 15:24:56 -03:00
parent 46b6253f22
commit 57594ce628
8 changed files with 204 additions and 3 deletions
+14
View File
@@ -275,6 +275,20 @@ pub struct AuditLog {
pub created_at: DateTime<Utc>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Recommendation {
pub title: String,
pub description: String,
pub lesson_id: Option<Uuid>,
pub priority: String, // "high", "medium", "low"
pub reason: String,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct RecommendationResponse {
pub recommendations: Vec<Recommendation>,
}
#[cfg(test)]
mod tests {
use super::*;