FE Settings integration

This commit is contained in:
2024-09-27 17:54:00 +02:00
parent 3a651ce4d8
commit 840e77fcc0
4 changed files with 72 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ type UserSettings struct {
type Settings struct {
UserID int `json:"userId" validate:"required,min=1"`
Settings UserSettings `json:"settings" validate:"required,dive"`
Settings UserSettings `json:"settings" validate:"required"`
}
var validate = validator.New()