fix: rename model

This commit is contained in:
hamster1963
2024-11-28 14:49:38 +08:00
parent ee9419cccc
commit 5f2e9fe38a
10 changed files with 28 additions and 107 deletions

View File

@@ -1,18 +1,18 @@
export interface NezhaAPIResponse {
export interface NezhaWebsocketResponse {
now: number;
servers: NezhaAPI[];
servers: NezhaServer[];
}
export interface NezhaAPI {
export interface NezhaServer {
id: number;
name: string;
last_active: string;
country_code: string;
host: NezhaAPIHost;
state: NezhaAPIStatus;
host: NezhaServerHost;
state: NezhaServerStatus;
}
export interface NezhaAPIHost {
export interface NezhaServerHost {
platform: string;
platform_version: string;
cpu: string[];
@@ -25,7 +25,7 @@ export interface NezhaAPIHost {
version: string;
}
export interface NezhaAPIStatus {
export interface NezhaServerStatus {
cpu: number;
mem_used: number;
swap_used: number;