mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-10-03 20:30:23 +00:00
1320b58cbb
- Fix bugs found during frontend integration - Clean up redundant and unused endpoints Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
44 lines
1.0 KiB
Go
Executable File
44 lines
1.0 KiB
Go
Executable File
package dto
|
|
|
|
type UserGroupDeviceGroupRef struct {
|
|
DeviceGroupID int64 `json:"deviceGroupId"`
|
|
DeviceGroupName string `json:"deviceGroupName"`
|
|
}
|
|
|
|
type UserGroup struct {
|
|
ID int64 `json:"id"`
|
|
UserGroup string `json:"userGroup"`
|
|
Description string `json:"description"`
|
|
UserCount int64 `json:"userCount"`
|
|
DeviceGroupList []UserGroupDeviceGroupRef `json:"deviceGroupList"`
|
|
}
|
|
|
|
type ListUserGroupsResp struct {
|
|
Items []UserGroup `json:"items"`
|
|
}
|
|
|
|
type UserGroupOption struct {
|
|
UserGroupID int64 `json:"userGroupId"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type ListUserGroupOptionsResp struct {
|
|
Items []UserGroupOption `json:"items"`
|
|
}
|
|
|
|
type CreateUserGroupReq struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type CreateUserGroupResp struct {
|
|
ID int64 `json:"id"`
|
|
}
|
|
|
|
type UpdateUserGroupReq struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type DeleteUserGroupResp struct{}
|