mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-21 01:53:23 +00:00
dff4d06107
- Align API behavior with frontend integration - Fix issues found during joint debugging Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
29 lines
794 B
Go
Executable File
29 lines
794 B
Go
Executable File
package dto
|
|
|
|
type Device struct {
|
|
ID int64 `json:"id"`
|
|
Ddns string `json:"ddns"`
|
|
Status string `json:"status"`
|
|
ConnectedTime int64 `json:"connectedTime"`
|
|
IP string `json:"ip"`
|
|
Mac string `json:"mac"`
|
|
Description string `json:"description"`
|
|
Client string `json:"client"`
|
|
DeviceGroupID *int64 `json:"deviceGroupId"`
|
|
DeviceGroupName string `json:"deviceGroupName"`
|
|
}
|
|
|
|
type ListDevicesResp struct {
|
|
Items []Device `json:"items"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"pageSize"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type MoveDevicesToGroupReq struct {
|
|
DeviceIDs []int64 `json:"deviceIds"`
|
|
GroupID int64 `json:"groupId"`
|
|
}
|
|
|
|
type MoveDevicesToGroupResp struct{}
|