diff --git a/kicc-ui/src/api/platform/monitor/controller/operLog.ts b/kicc-ui/src/api/platform/monitor/controller/operLog.ts index a8322b87..8f8390e0 100644 --- a/kicc-ui/src/api/platform/monitor/controller/operLog.ts +++ b/kicc-ui/src/api/platform/monitor/controller/operLog.ts @@ -7,28 +7,16 @@ import type { OperLogParams, OperLog, OperLogResult } from '/@/api/platform/moni import { defHttp } from '/@/utils/http/axios'; enum Api { - list = '/system_proxy/system/dict/list', - add = '/system_proxy/system/dict/save', - get = '/system_proxy/system/dict', - edit = '/system_proxy/system/dict/update', - del = '/system_proxy/system/dict/remove', - changeStatus='/system_proxy/system/dict/changeStatus' + list = '/monitor_proxy/monitor/operLog/list', + del = '/monitor_proxy/monitor/operLog/remove', + clean = '/monitor_proxy/monitor/operLog/clean' } -/** 查询配置列表 */ -export const listDict = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); +/** 查询操作日志列表 */ +export const listOperLog = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); -/** 新增配置 */ -export const addDict = (params: Partial) => defHttp.post({ url: Api.add, data: params }); +/** 删除操作日志 */ +export const delOperLog = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); -/** 修改配置 */ -export const editDict = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); - -/** 查询配置详细 */ -export const getDict = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); - -/** 删除配置 */ -export const delDict = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); - -/** 修改字典状态 */ -export const changeStatus = (id: string, status: string) => defHttp.put({ url: Api.changeStatus, data: { id: id, status: status } }); +/** 清除所有操作日志 */ +export const cleanOperLog = () => defHttp.delete({ url: Api.clean });