From cd5308e9bda5c379262a7ac51a8dbf96262c7020 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Wed, 5 Oct 2022 15:17:55 +0200 Subject: [PATCH] feat(consent): add new field for safety sge onboarding --- internal/models/consent.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/internal/models/consent.go b/internal/models/consent.go index 59d456a..65f97a1 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) { -- GitLab