fix missing gin context (fixes #1)

This commit is contained in:
Adrian Zürcher
2025-10-26 21:05:55 +01:00
parent 8d8a1e3c33
commit 4670c93eff
6 changed files with 368 additions and 357 deletions

View File

@@ -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 {