|
@@ -1,11 +1,11 @@
|
|
|
import { http } from "@/utils/http/axios";
|
|
import { http } from "@/utils/http/axios";
|
|
|
-import { LoginLogPageRequest, LoginLogRespose, OperationLogRespose, OperatinoLogPageRequest, SystemLogRequest, SystemLogRespose, OpretionPageDetail } from "@/types/log/type";
|
|
|
|
|
|
|
+import { LoginLogPageRequest, LoginLogResponse, OperationLogResponse, OperationLogPageRequest, SystemLogRequest, SystemLogResponse, SystemExport ,OperationPageDetail, OperationExport } from "@/types/log/type";
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
*@description: V4: 获取登录日志列表
|
|
*@description: V4: 获取登录日志列表
|
|
|
*/
|
|
*/
|
|
|
export function queryLoginLogList(data: LoginLogPageRequest) {
|
|
export function queryLoginLogList(data: LoginLogPageRequest) {
|
|
|
- return http.request<LoginLogRespose>({
|
|
|
|
|
|
|
+ return http.request<LoginLogResponse>({
|
|
|
url: '/admin/log/queryLoginLogPage',
|
|
url: '/admin/log/queryLoginLogPage',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: data
|
|
data: data
|
|
@@ -29,8 +29,8 @@ export function exportLoginLog(data: LoginLogPageRequest) {
|
|
|
/**
|
|
/**
|
|
|
*@description: V4: 获取操作日志列表
|
|
*@description: V4: 获取操作日志列表
|
|
|
*/
|
|
*/
|
|
|
-export function queryOperationLogList(data: OperatinoLogPageRequest) {
|
|
|
|
|
- return http.request<OperationLogRespose>({
|
|
|
|
|
|
|
+export function queryOperationLogList(data: OperationLogPageRequest) {
|
|
|
|
|
+ return http.request<OperationLogResponse>({
|
|
|
url: '/admin/log/queryLogPage',
|
|
url: '/admin/log/queryLogPage',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: data
|
|
data: data
|
|
@@ -40,7 +40,7 @@ export function queryOperationLogList(data: OperatinoLogPageRequest) {
|
|
|
/**
|
|
/**
|
|
|
* @description: @v4:操作日志导出 admin/log/exportLog
|
|
* @description: @v4:操作日志导出 admin/log/exportLog
|
|
|
*/
|
|
*/
|
|
|
-export function exportOperationLog(data: OperatinoLogPageRequest) {
|
|
|
|
|
|
|
+export function exportOperationLog(data: OperationExport) {
|
|
|
return http.request({
|
|
return http.request({
|
|
|
url: '/admin/log/exportLog',
|
|
url: '/admin/log/exportLog',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
@@ -55,7 +55,7 @@ export function exportOperationLog(data: OperatinoLogPageRequest) {
|
|
|
*@description: V4: 获取操作日志详情
|
|
*@description: V4: 获取操作日志详情
|
|
|
*/
|
|
*/
|
|
|
export function queryOperationLogDetail(id: number) {
|
|
export function queryOperationLogDetail(id: number) {
|
|
|
- return http.request<OpretionPageDetail>({
|
|
|
|
|
|
|
+ return http.request<OperationPageDetail>({
|
|
|
url: `/admin/log/queryLogDetail?id=${id}`,
|
|
url: `/admin/log/queryLogDetail?id=${id}`,
|
|
|
method: 'get',
|
|
method: 'get',
|
|
|
})
|
|
})
|
|
@@ -65,7 +65,7 @@ export function queryOperationLogDetail(id: number) {
|
|
|
*@description: V4: 获取系统日志列表
|
|
*@description: V4: 获取系统日志列表
|
|
|
*/
|
|
*/
|
|
|
export function querySystemLogList(data: SystemLogRequest) {
|
|
export function querySystemLogList(data: SystemLogRequest) {
|
|
|
- return http.request<SystemLogRespose>({
|
|
|
|
|
|
|
+ return http.request<SystemLogResponse>({
|
|
|
url: '/admin/log/queryEventLogPage',
|
|
url: '/admin/log/queryEventLogPage',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: data
|
|
data: data
|
|
@@ -75,7 +75,7 @@ export function querySystemLogList(data: SystemLogRequest) {
|
|
|
/**
|
|
/**
|
|
|
* @description: @v4:系统日志导出 admin/log/exportEventLog
|
|
* @description: @v4:系统日志导出 admin/log/exportEventLog
|
|
|
*/
|
|
*/
|
|
|
-export function exportSystemLog(data: SystemLogRequest) {
|
|
|
|
|
|
|
+export function exportSystemLog(data: SystemExport) {
|
|
|
return http.request({
|
|
return http.request({
|
|
|
url: '/admin/log/exportEventLog',
|
|
url: '/admin/log/exportEventLog',
|
|
|
method: 'post',
|
|
method: 'post',
|