fix(report): aligner types sur backend — note→score, exercices string[], supprimer Exercice

This commit is contained in:
Hermann_Kitio 2026-04-20 06:01:29 +03:00
parent ef86da85d7
commit fb3de2865f
2 changed files with 8 additions and 14 deletions

View file

@ -18,15 +18,10 @@
export interface Critere {
nom: string
note: number
score: number
commentaire: string
}
export interface Exercice {
titre: string
contenu: string
}
/**
* Rapport de correction renvoyé par `POST /corrections/ee` ou `POST /corrections/eo`.
* Timeout 30 s (DeepSeek/Gemini cf. api.ts).
@ -40,7 +35,7 @@ export interface Report {
erreurs: string[] // feature : detailed_report
modele: string // feature : tips — 1re phrase visible pour Free
idees: string[] // feature : tips — 1er item visible pour Free
exercices: Exercice[] // feature : tips — titre visible pour Free
exercices: string[] // feature : tips — 1er item visible pour Free
}
/** Corps de `POST /corrections/ee`. */