From 16db566a8f244c610912bde92852f0faaf0a69e7 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 29 九月 2025 11:27:17 +0800 Subject: [PATCH] feat: 日志 --- src/services/api/logRecords.ts | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/src/services/api/logRecords.ts b/src/services/api/logRecords.ts index ed70d74..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', { @@ -41,6 +53,36 @@ }); } +/** 鏌ヨ鐭俊鏃ュ織 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( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) @@ -67,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