mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
31 lines
619 B
Go
31 lines
619 B
Go
package proto
|
|
|
|
type WakeOnLANReq struct {
|
|
Mac string `form:"mac" validate:"required"`
|
|
}
|
|
|
|
type GetMacRsp struct {
|
|
Macs []string `json:"macs"`
|
|
}
|
|
|
|
type DeleteMacReq struct {
|
|
Mac string `form:"mac" validate:"required"`
|
|
}
|
|
|
|
type SetMacNameReq struct {
|
|
Mac string `form:"mac" validate:"required"`
|
|
Name string `form:"name" validate:"required"`
|
|
}
|
|
|
|
type GetWifiRsp struct {
|
|
Supported bool `json:"supported"`
|
|
ApMode bool `json:"apMode"`
|
|
Connected bool `json:"connected"`
|
|
Ssid string `json:"ssid"`
|
|
}
|
|
|
|
type ConnectWifiReq struct {
|
|
Ssid string `validate:"required"`
|
|
Password string `valid:"required"`
|
|
}
|