mirror of
https://github.com/XZB-1248/Spark
synced 2025-10-06 08:36:51 +08:00
30 lines
790 B
Go
30 lines
790 B
Go
package modules
|
|
|
|
type Packet struct {
|
|
Code int `json:"code"`
|
|
Act string `json:"act,omitempty"`
|
|
Msg string `json:"msg,omitempty"`
|
|
Data map[string]interface{} `json:"data,omitempty"`
|
|
}
|
|
|
|
type CommonPack struct {
|
|
Code int `json:"code"`
|
|
Act string `json:"act,omitempty"`
|
|
Msg string `json:"msg,omitempty"`
|
|
Data interface{} `json:"data,omitempty"`
|
|
}
|
|
|
|
type Device struct {
|
|
ID string `json:"id"`
|
|
OS string `json:"os"`
|
|
Arch string `json:"arch"`
|
|
CPU string `json:"cpu"`
|
|
LAN string `json:"lan"`
|
|
WAN string `json:"wan"`
|
|
Mac string `json:"mac"`
|
|
Mem uint64 `json:"mem"`
|
|
Uptime uint64 `json:"uptime"`
|
|
Hostname string `json:"hostname"`
|
|
Username string `json:"username"`
|
|
}
|