Write and read language setting from backend

This commit is contained in:
Alf Sebastian Houge
2023-02-26 13:54:55 +01:00
parent efa6aed8eb
commit 14968013dd
5 changed files with 79 additions and 38 deletions

View File

@@ -19,6 +19,7 @@ type User struct {
Name string `json:"name"`
Vehicles []Vehicle `gorm:"many2many:user_vehicles;" json:"vehicles"`
IsDisabled bool `json:"isDisabled"`
Language string `json:"language"`
}
func (b *User) MarshalJSON() ([]byte, error) {