2
0

feat:cdr界面

This commit is contained in:
zhongzm
2025-01-03 18:01:22 +08:00
parent 1267648ebc
commit 61c62f48b0
5 changed files with 172 additions and 130 deletions

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

@@ -213,6 +213,63 @@ declare namespace Api {
clientNum: number;
packageEnable: boolean;
}
// CDR 话单查询参数
interface CdrHistoryParams {
pageNum: number;
pageSize: number;
userName?: string;
clientName?: string;
clientMac?: string;
startTime?: string;
endTime?: string;
}
// CDR 话单信息
interface CdrHistory {
id: string;
userId: number;
userName: string;
clientName: string;
clientMac: string;
trafficUp: number;
trafficDown: number;
startTime: string;
endTime: string;
duration: number;
}
// CDR 话单响应
interface CdrHistoryResponse {
rows: CdrHistory[];
total: number;
}
// 账单查询参数
interface BillParams {
pageNum: number;
pageSize: number;
userName?: string;
type?: number;
status?: number;
}
// 账单信息
interface BillInfo {
id: string;
userId: number;
userName: string;
type: number;
packageName: string;
orderAmount: number;
status: number;
createTime: string;
}
// 账单响应
interface BillResponse {
rows: BillInfo[];
total: number;
}
}
/**

View File

@@ -121,6 +121,8 @@ declare global {
const exportJobLog: typeof import('../service/api/jobLog')['exportJobLog']
const extendRef: typeof import('@vueuse/core')['extendRef']
const extractTabsByAllRoutes: typeof import('../store/modules/tab/shared')['extractTabsByAllRoutes']
const fetchBillList: typeof import('../service/api/auth')['fetchBillList']
const fetchCdrHistory: typeof import('../service/api/auth')['fetchCdrHistory']
const fetchCustomBackendError: typeof import('../service/api/auth')['fetchCustomBackendError']
const fetchGetAllPages: typeof import('../service/api/menu')['fetchGetAllPages']
const fetchGetConstantRoutes: typeof import('../service/api/route')['fetchGetConstantRoutes']