add json tag to model
This commit is contained in:
@@ -5,5 +5,5 @@ type Event struct {
|
||||
Name string `gorm:"column:name" json:"name"`
|
||||
Date string `gorm:"column:date" json:"date"`
|
||||
Day string `gorm:"column:day" json:"day"`
|
||||
Attendees []*Member `gorm:"many2many:member_events;"`
|
||||
Attendees []*Member `gorm:"many2many:member_events;" json:"attendees"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user