fix user model json marshal
This commit is contained in:
parent
73ef0570fd
commit
32afe3ae05
|
@ -6,5 +6,5 @@ type User struct {
|
|||
Username string `json:"username"`
|
||||
Firstname string `json:"firstname"`
|
||||
Lastname string `json:"lastname"`
|
||||
Articles []Article `gorm:"foreignKey:Author"`
|
||||
Articles []Article `json:"articles" gorm:"foreignKey:Author"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue