fix missing gin context (fixes #1)
This commit is contained in:
@@ -4,9 +4,9 @@ type User struct {
|
||||
Id uint `gorm:"primaryKey" json:"id"`
|
||||
Name string `gorm:"column:user_name" json:"user"`
|
||||
Email string `gorm:"column:email" json:"email"`
|
||||
Role string `gorm:"column:role" json:"role"`
|
||||
Role string `gorm:"column:role" json:"role,omitempty"`
|
||||
Password string `gorm:"column:password" json:"password"`
|
||||
Settings Settings `gorm:"type:json" json:"settings"`
|
||||
Settings Settings `gorm:"type:json" json:"settings,omitempty"`
|
||||
}
|
||||
|
||||
func (u *User) IsValid() bool {
|
||||
|
||||
Reference in New Issue
Block a user