change json field
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
|||||||
// swagger:model Event
|
// swagger:model Event
|
||||||
type Event struct {
|
type Event struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
ID uuid.UUID `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:"-"`
|
||||||
|
|||||||
Reference in New Issue
Block a user