change json field
This commit is contained in:
@@ -8,17 +8,17 @@ import (
|
|||||||
|
|
||||||
// swagger:model Event
|
// swagger:model Event
|
||||||
type Event struct {
|
type Event struct {
|
||||||
gorm.Model
|
gorm.Model `json:"meta"`
|
||||||
ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||||
Start time.Time `json:"start"`
|
Start time.Time `json:"start"`
|
||||||
End time.Time `json:"end"`
|
End time.Time `json:"end"`
|
||||||
Author User `json:"author" gorm:"-"`
|
Author User `json:"author" gorm:"-"`
|
||||||
AuthorId uuid.UUID `json:"-"`
|
AuthorId uuid.UUID `json:"-"`
|
||||||
Medic User `json:"medic" gorm:"-"`
|
Medic User `json:"medic" gorm:"-"`
|
||||||
MedicId uuid.UUID `json:"-"`
|
MedicId uuid.UUID `json:"-"`
|
||||||
Person PersonalInformation `json:"person" gorm:"-"`
|
Person PersonalInformation `json:"person" gorm:"-"`
|
||||||
PersonId uuid.UUID `json:"-"`
|
PersonId uuid.UUID `json:"-"`
|
||||||
OrgId uuid.UUID `json:"-"`
|
OrgId uuid.UUID `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// swagger:model CreateEvent
|
// swagger:model CreateEvent
|
||||||
|
|||||||
Reference in New Issue
Block a user