mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-24 11:36:19 +00:00
6a01778bec
Add API endpoints to manage devices, device groups, users, and user groups. Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
26 lines
627 B
Go
Executable File
26 lines
627 B
Go
Executable File
package dto
|
|
|
|
type SetUserGroupsReq struct {
|
|
GroupIDs []int64 `json:"groupIds"`
|
|
}
|
|
type SetUserGroupsResp struct {
|
|
UserID int64 `json:"userId"`
|
|
GroupIDs []int64 `json:"groupIds"`
|
|
}
|
|
|
|
type SetUserGroupDeviceGroupsReq struct {
|
|
DeviceGroupIDs []int64 `json:"deviceGroupIds"`
|
|
}
|
|
type SetUserGroupDeviceGroupsResp struct {
|
|
UserGroupID int64 `json:"userGroupId"`
|
|
DeviceGroupIDs []int64 `json:"deviceGroupIds"`
|
|
}
|
|
|
|
type SetDeviceGroupDevicesReq struct {
|
|
DeviceIDs []int64 `json:"deviceIds"`
|
|
}
|
|
type SetDeviceGroupDevicesResp struct {
|
|
DeviceGroupID int64 `json:"deviceGroupId"`
|
|
DeviceIDs []int64 `json:"deviceIds"`
|
|
}
|