2
0

fix:历史记录界面后端对接

This commit is contained in:
zhongzm
2024-12-18 17:24:26 +08:00
parent 7cf6249fd8
commit a6342d7036
8 changed files with 327 additions and 216 deletions

View File

@@ -91,3 +91,34 @@ export function doGetCheckCode() {
url: '/code'
});
}
//首页仪表盘
/** Get dashboard gauge data */
export function fetchDashboardData() {
return request<Api.Dashboard.GaugeData>({
url: '/u/cdr/getOne',
method: 'get'
});
}
/** Get current connected devices */
export function fetchCurrentDevices() {
return request<Api.Device.DeviceListResponse>({
url: '/u/client/pageCurrentClient',
method: 'get'
});
}
/** Get historical devices */
export function fetchHistoricalDevices() {
return request<Api.Device.HistoricalDeviceListResponse>({
url: '/u/client/pageHistoryClient',
method: 'get'
});
}
/** Get CDR history records */
export function fetchCDRHistory(params: Api.CDR.CDRQueryParams) {
return request<Api.CDR.CDRListResponse>({
url: '/u/cdr/pageHistory',
method: 'get',
params
});
}