diff --git a/internal/models/consent.go b/internal/models/consent.go index 4829cbe03fbc964410598a331e6e5d0a9a61b8af..f15774b06a05cb3f0ac1744288c8a2c099eb17de 100644 --- a/internal/models/consent.go +++ b/internal/models/consent.go @@ -14,15 +14,16 @@ import ( type Consent struct { gorm.Model - Firstname string `json:"firstname"` - Lastname string `json:"lastname"` - Address string `json:"address"` - PointID int `json:"pointID"` - PostalCode string `json:"postalCode"` - City string `json:"city"` - InseeCode string `json:"inseeCode"` - EndDate time.Time `json:"endDate"` - ServiceID int `json:"serviceID,omitempty"` + Firstname string `json:"firstname"` + Lastname string `json:"lastname"` + Address string `json:"address"` + PointID int `json:"pointID"` + PostalCode string `json:"postalCode"` + City string `json:"city"` + SafetyBoarding bool `json:"safetyOnBoarding"` + InseeCode string `json:"inseeCode"` + EndDate time.Time `json:"endDate"` + ServiceID int `json:"serviceID,omitempty"` } func (dh *DataHandler) GetConsentById(w http.ResponseWriter, r *http.Request) {