refactor(api): rename OnlineUser to ServerOnlineUser for clarity
This commit is contained in:
parent
7bd026a600
commit
630098bfbb
@ -11,7 +11,7 @@ info (
|
|||||||
import "../types.api"
|
import "../types.api"
|
||||||
|
|
||||||
type (
|
type (
|
||||||
OnlineUser {
|
ServerOnlineUser {
|
||||||
IP []string `json:"ip"`
|
IP []string `json:"ip"`
|
||||||
UserId int64 `json:"user_id"`
|
UserId int64 `json:"user_id"`
|
||||||
Subscribe string `json:"subscribe"`
|
Subscribe string `json:"subscribe"`
|
||||||
@ -20,10 +20,10 @@ type (
|
|||||||
ExpiredAt int64 `json:"expired_at"`
|
ExpiredAt int64 `json:"expired_at"`
|
||||||
}
|
}
|
||||||
ServerStatus {
|
ServerStatus {
|
||||||
Online []OnlineUser `json:"online"`
|
Online []ServerOnlineUser `json:"online"`
|
||||||
Cpu float64 `json:"cpu"`
|
Cpu float64 `json:"cpu"`
|
||||||
Mem float64 `json:"mem"`
|
Mem float64 `json:"mem"`
|
||||||
Disk float64 `json:"disk"`
|
Disk float64 `json:"disk"`
|
||||||
}
|
}
|
||||||
Server {
|
Server {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user