25 lines
739 B
Go
25 lines
739 B
Go
package models
|
|
|
|
// ExportPDFMeta = métadonnées utilisées pour nommer le fichier et afficher l'entête du PDF.
|
|
//
|
|
// YearMonth doit être au format YYYY-MM.
|
|
type ExportPDFMeta struct {
|
|
YearMonth string `json:"yearMonth"`
|
|
Nom string `json:"nom"`
|
|
Prenom string `json:"prenom"`
|
|
Matricule string `json:"matricule"`
|
|
}
|
|
|
|
// ExportPDFRequest = données nécessaires à la génération du PDF.
|
|
//
|
|
// Note: on envoie les inputs (CalculateRequest) et on recalcule côté backend
|
|
// pour garantir que le PDF correspond exactement aux règles/taux du profil.
|
|
type ExportPDFRequest struct {
|
|
Meta ExportPDFMeta `json:"meta"`
|
|
Request CalculateRequest `json:"request"`
|
|
}
|
|
|
|
type ExportPDFResponse struct {
|
|
Path string `json:"path"`
|
|
}
|