Import initail de calcul-astreintes v0.9.4 pour passage en paycheck 1.0

This commit is contained in:
2026-01-19 14:25:43 +01:00
commit cad0b2768a
44 changed files with 4183 additions and 0 deletions

24
internal/models/pdf.go Normal file
View File

@@ -0,0 +1,24 @@
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"`
}