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

21
internal/models/import.go Normal file
View File

@@ -0,0 +1,21 @@
package models
// Agent = une personne trouvée dans le fichier (affichage + clé matricule)
type Agent struct {
Matricule string `json:"matricule"`
Nom string `json:"nom"`
Prenom string `json:"prenom"`
Display string `json:"display"` // "NOM Prenom (matricule)"
}
// AgentTotals = les totaux "Total Agent" (ligne du dessus)
type AgentTotals struct {
Matricule string `json:"matricule"`
Q471 float64 `json:"q471"` // Total heures astreinte (col G)
Q456 float64 `json:"q456"` // Intervention jour (col L)
Q459 float64 `json:"q459"` // Intervention nuit (col M)
Q458 float64 `json:"q458"` // Intervention dimanche/ferié (col N)
// ✅ Nouveau: nombre de dimanches / jours fériés détectés via les lignes P_DIM-JF
NbDimFerie int `json:"nbDimFerie"`
}