Add User Backend

This commit is contained in:
Samuel Lorch 2023-05-14 03:23:38 +02:00
parent e8f697003e
commit e44d66d334
6 changed files with 164 additions and 0 deletions

View file

@ -0,0 +1,5 @@
package system
type System struct {
Users map[string]User `json:"users" validate:"required,dive"`
}

View file

@ -0,0 +1,7 @@
package system
type User struct {
Comment string `json:"comment"`
Hash string `json:"hash"`
Salt string `json:"salt"`
}