diff --git a/internal/models/consent.go b/internal/models/consent.go index 59d456a7e7ebefdc2be2e0d6e699ad4774f2dc10..65f97a1b3eefcd280b799f3884c6cbf9f0e80793 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) {