This commit is contained in:
asteam
2025-07-15 17:39:18 +03:00
parent 1f8637400f
commit 7dacf35cd6
163 changed files with 4322 additions and 504 deletions

View File

@@ -20,15 +20,17 @@ type CreateRequest struct {
// Password of user
// Required: false
// Default: strongpassword
Password string `url:"password,omitempty" json:"password,omitempty"`
// List of groups this user belongs to.
// Required: false
Groups []string `url:"groups,omitempty" json:"groups,omitempty"`
// List of apiaccess groups this user belongs to.
// Required: false
APIAccess []uint64 `url:"apiaccess,omitempty" json:"apiaccess,omitempty"`
// Provider of user
// one of: bvs, decs3o
// Required: false
Provider string `url:"provider,omitempty" json:"provider,omitempty" validate:"omitempty,userProvider"`
}
// Create creates a user.