|  |  |  | 
|---|
|  |  |  | // @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/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', | 
|---|
|  |  |  | 
|---|
|  |  |  | ...(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 || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|