2023-11-20 15:28:09 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
type DeviceBaseInfo struct {
|
|
|
|
DNS []string `json:"dns"`
|
|
|
|
Hosts []HostHelper `json:"hosts"`
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
TimeZone string `json:"timeZone"`
|
|
|
|
LocalTime string `json:"localTime"`
|
|
|
|
Ntp string `json:"ntp"`
|
|
|
|
User string `json:"user"`
|
2023-11-27 12:02:08 +08:00
|
|
|
|
|
|
|
SwapMemoryTotal uint64 `json:"swapMemoryTotal"`
|
|
|
|
SwapMemoryAvailable uint64 `json:"swapMemoryAvailable"`
|
|
|
|
SwapMemoryUsed uint64 `json:"swapMemoryUsed"`
|
|
|
|
|
|
|
|
SwapDetails []SwapHelper `json:"swapDetails"`
|
2023-11-20 15:28:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type HostHelper struct {
|
|
|
|
IP string `json:"ip"`
|
|
|
|
Host string `json:"host"`
|
|
|
|
}
|
|
|
|
|
2023-11-27 12:02:08 +08:00
|
|
|
type SwapHelper struct {
|
|
|
|
Path string `json:"path" validate:"required"`
|
|
|
|
Size uint64 `json:"size"`
|
|
|
|
Used string `json:"used"`
|
|
|
|
|
|
|
|
IsNew bool `json:"isNew"`
|
|
|
|
}
|
|
|
|
|
2023-11-20 15:28:09 +08:00
|
|
|
type TimeZoneOptions struct {
|
|
|
|
From string `json:"from"`
|
|
|
|
Zones []string `json:"zones"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChangePasswd struct {
|
|
|
|
User string `json:"user"`
|
|
|
|
Passwd string `json:"passwd"`
|
|
|
|
}
|