2
0

fix:仪表盘数据对接修改

This commit is contained in:
zhongzm
2024-12-25 18:51:09 +08:00
parent 248ee105ab
commit 8edc1e19c7
3 changed files with 154 additions and 92 deletions

22
src/typings/api.d.ts vendored
View File

@@ -443,18 +443,18 @@ declare namespace Api {
namespace Dashboard {
/** Dashboard gauge data */
interface GaugeData {
/** Remaining credit amount */
remainingCredit: number;
/** Used credit amount */
usedCredit: number;
/** Remaining flow amount (MB) */
remainingFlow: number;
/** Used flow amount (MB) */
usedFlow: number;
/** Current traffic rate (MB/s) */
trafficRate: number;
/** Peak traffic rate (MB/s) */
/** Balance amount */
balance: number;
/** Total traffic amount (bytes) */
traffic: number;
/** Used traffic amount (bytes) */
trafficUsed: number;
/** Current traffic rate (B/s) */
activity: number;
/** Peak traffic rate (B/s) */
peakTrafficRate: number;
/** Number of connected devices */
clientNum: number;
}
}