mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
Add User Backend
This commit is contained in:
parent
e8f697003e
commit
e44d66d334
6 changed files with 164 additions and 0 deletions
5
internal/definitions/system/system.go
Normal file
5
internal/definitions/system/system.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package system
|
||||
|
||||
type System struct {
|
||||
Users map[string]User `json:"users" validate:"required,dive"`
|
||||
}
|
7
internal/definitions/system/user.go
Normal file
7
internal/definitions/system/user.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package system
|
||||
|
||||
type User struct {
|
||||
Comment string `json:"comment"`
|
||||
Hash string `json:"hash"`
|
||||
Salt string `json:"salt"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue