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

This commit is contained in:
Nurfog committed 2026-01-18 15:24:56 -03:00
1 parent 46b6253f22
commit 57594ce628
8 files changed
+204 -3

No files matched your search

+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::*;