fix:历史记录界面后端对接
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user