wupengfei
2025-09-29 588f577a14b2a51663d43f3bf2f303862d65b932
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* 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 || {}),
  });
}