/* eslint-disable */
|
// @ts-ignore
|
import { request } from '@/utils/request';
|
|
/** 控制台日志分页列表查询 POST /api/common/logRecords/getConsoleLogs */
|
export async function getConsoleLogs(body: API.GetConsoleLogsQuery, options?: API.RequestConfig) {
|
return request<API.GetConsoleLogsQueryResult>('/api/common/logRecords/getConsoleLogs', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 查询数据库审计日志分页列表 POST /api/common/logRecords/getDbAuditLogs */
|
export async function getDbAuditLogs(body: API.GetDbAuditLogsQuery, options?: API.RequestConfig) {
|
return request<API.GetDbAuditLogsQueryResult>('/api/common/logRecords/getDbAuditLogs', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 异常日志分页列表查询 POST /api/common/logRecords/getExceptionLogs */
|
export async function getExceptionLogs(
|
body: API.GetExceptionLogsQuery,
|
options?: API.RequestConfig
|
) {
|
return request<API.GetExceptionLogsQueryResult>('/api/common/logRecords/getExceptionLogs', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 资源日志分页列表查询 POST /api/common/logRecords/getResourceLogs */
|
export async function getResourceLogs(body: API.GetResourceLogsQuery, options?: API.RequestConfig) {
|
return request<API.GetResourceLogsQueryResult>('/api/common/logRecords/getResourceLogs', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 查询短信日志 POST /api/common/logRecords/getSmsLogs */
|
export async function getSmsLogs(body: API.GetSmsLogsQuery, options?: API.RequestConfig) {
|
return request<API.GetSmsLogsQueryResult>('/api/common/logRecords/getSmsLogs', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 第三方资源日志分页列表查询 POST /api/common/logRecords/getThreeResourceLogs */
|
export async function getThreeResourceLogs(
|
body: API.GetThreeResourceLogsQuery,
|
options?: API.RequestConfig
|
) {
|
return request<API.GetThreeResourceLogsQueryResult>(
|
'/api/common/logRecords/getThreeResourceLogs',
|
{
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 跟踪Id日志查询 GET /api/common/logRecords/getTraceIdLog */
|
export async function getTraceIdLog(
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
params: API.APIgetTraceIdLogParams,
|
options?: API.RequestConfig
|
) {
|
return request<API.GetTraceIdLogQueryResult>('/api/common/logRecords/getTraceIdLog', {
|
method: 'GET',
|
params: {
|
...params,
|
},
|
...(options || {}),
|
});
|
}
|
|
/** 重新发送资源 POST /api/common/logRecords/resendResource */
|
export async function resendResource(body: API.ResendResourceCommand, options?: API.RequestConfig) {
|
return request<string>('/api/common/logRecords/resendResource', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 保存前端日志 POST /api/common/logRecords/saveFrontConsoleLog */
|
export async function saveFrontConsoleLog(
|
body: API.SaveFrontConsoleLogCommand,
|
options?: API.RequestConfig
|
) {
|
return request<string>('/api/common/logRecords/saveFrontConsoleLog', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|