From 76d07c0c336eafb918fba27450d63865baeb0642 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 29 九月 2025 09:19:56 +0800 Subject: [PATCH] Merge branch 'master' into dev-1.1.2 --- src/services/api/logRecords.ts | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/src/services/api/logRecords.ts b/src/services/api/logRecords.ts index 0cb3919..4780141 100644 --- a/src/services/api/logRecords.ts +++ b/src/services/api/logRecords.ts @@ -2,6 +2,18 @@ // @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', { @@ -32,6 +44,18 @@ /** 璧勬簮鏃ュ織鍒嗛〉鍒楄〃鏌ヨ 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', @@ -85,3 +109,18 @@ ...(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 || {}), + }); +} -- Gitblit v1.9.1