refactor(api): rename OnlineUser to ServerOnlineUser for clarity

This commit is contained in:
Chang lue Tsen 2025-08-25 11:16:25 -04:00
parent 7bd026a600
commit 630098bfbb

View File

@ -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,7 +20,7 @@ type (
ExpiredAt int64 `json:"expired_at"`
}
ServerStatus {
Online []OnlineUser `json:"online"`
Online []ServerOnlineUser `json:"online"`
Cpu float64 `json:"cpu"`
Mem float64 `json:"mem"`
Disk float64 `json:"disk"`