| | |
| | | // @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', { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询短信日志 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默认没有生成对象) |
| | |
| | | ...(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 || {}), |
| | | }); |
| | | } |