mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-20 17:43:29 +00:00
55854afba8
- support device group sorting - auto-create local users for LDAP and OIDC login Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
43 lines
1.1 KiB
Go
Executable File
43 lines
1.1 KiB
Go
Executable File
package dto
|
|
|
|
type UserGroupRef struct {
|
|
UserGroupID int64 `json:"userGroupId"`
|
|
UserGroupName string `json:"userGroupName"`
|
|
}
|
|
|
|
type User struct {
|
|
ID int64 `json:"id"`
|
|
Username string `json:"username"`
|
|
Description string `json:"description"`
|
|
Role string `json:"role"`
|
|
IsSystem bool `json:"isSystem"`
|
|
AuthProvider string `json:"authProvider"`
|
|
UserGroupList []UserGroupRef `json:"userGroupList"`
|
|
}
|
|
|
|
type ListUsersResp struct {
|
|
Items []User `json:"items"`
|
|
}
|
|
|
|
type CreateUserReq struct {
|
|
Role string `json:"role"`
|
|
Username string `json:"username"`
|
|
Description string `json:"description"`
|
|
Password string `json:"password"`
|
|
Repassword string `json:"repassword"`
|
|
UserGroupIDs []int64 `json:"userGroupIds"`
|
|
}
|
|
|
|
type CreateUserResp struct{}
|
|
|
|
type UpdateUserReq struct {
|
|
Role *string `json:"role"`
|
|
Username *string `json:"username"`
|
|
Description *string `json:"description"`
|
|
Password *string `json:"password"`
|
|
Repassword *string `json:"repassword"`
|
|
UserGroupIDs *[]int64 `json:"userGroupIds"`
|
|
}
|
|
|
|
type DeleteUserResp struct{}
|