import axiosInstance from "@/api/axios.ts";
import type {IRecordApiRequestSearch} from "@/interface/page/recordApi/IRecordApiRequestSearch.ts";
import type {IRecordApiResponseData} from "@/model/table/IRecordApiResponseData.ts";

// 查询接口请求记录
export default class RecordApi {

    static queryApiRequest(query: IRecordApiRequestSearch, pageSize: number, pageIndex: number) {
        return axiosInstance.post('/app/recordApi/queryApiRequestWithPage', query, {
            params: {
                pageSize: pageSize,
                pageIndex: pageIndex
            }
        })
    };

    static queryApiResponse(query: IRecordApiResponseData, pageSize: number, pageIndex: number) {
        return axiosInstance.post('/app/recordApi/queryApiResponseWithPage', query, {
            params: {
                pageSize: pageSize,
                pageIndex: pageIndex
            }
        })
    }
}