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"
|
||||
|
||||
type (
|
||||
OnlineUser {
|
||||
ServerOnlineUser {
|
||||
IP []string `json:"ip"`
|
||||
UserId int64 `json:"user_id"`
|
||||
Subscribe string `json:"subscribe"`
|
||||
@ -20,10 +20,10 @@ type (
|
||||
ExpiredAt int64 `json:"expired_at"`
|
||||
}
|
||||
ServerStatus {
|
||||
Online []OnlineUser `json:"online"`
|
||||
Cpu float64 `json:"cpu"`
|
||||
Mem float64 `json:"mem"`
|
||||
Disk float64 `json:"disk"`
|
||||
Online []ServerOnlineUser `json:"online"`
|
||||
Cpu float64 `json:"cpu"`
|
||||
Mem float64 `json:"mem"`
|
||||
Disk float64 `json:"disk"`
|
||||
}
|
||||
Server {
|
||||
Id int64 `json:"id"`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user