From 15f51516afe851ae09c7f9438e39101656458b31 Mon Sep 17 00:00:00 2001 From: kandrusyak Date: Thu, 3 Aug 2023 00:19:08 +0300 Subject: [PATCH] change json field --- model/event.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/model/event.go b/model/event.go index e719bba..36cc787 100644 --- a/model/event.go +++ b/model/event.go @@ -8,17 +8,17 @@ import ( // swagger:model Event type Event struct { - gorm.Model - ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"` - Start time.Time `json:"start"` - End time.Time `json:"end"` - Author User `json:"author" gorm:"-"` - AuthorId uuid.UUID `json:"-"` - Medic User `json:"medic" gorm:"-"` - MedicId uuid.UUID `json:"-"` - Person PersonalInformation `json:"person" gorm:"-"` - PersonId uuid.UUID `json:"-"` - OrgId uuid.UUID `json:"-"` + gorm.Model `json:"meta"` + ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"` + Start time.Time `json:"start"` + End time.Time `json:"end"` + Author User `json:"author" gorm:"-"` + AuthorId uuid.UUID `json:"-"` + Medic User `json:"medic" gorm:"-"` + MedicId uuid.UUID `json:"-"` + Person PersonalInformation `json:"person" gorm:"-"` + PersonId uuid.UUID `json:"-"` + OrgId uuid.UUID `json:"-"` } // swagger:model CreateEvent