|
|
@ -7,28 +7,16 @@ import type { OperLogParams, OperLog, OperLogResult } from '/@/api/platform/moni |
|
|
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
|
|
|
|
|
|
|
|
|
enum Api { |
|
|
|
enum Api { |
|
|
|
list = '/system_proxy/system/dict/list', |
|
|
|
list = '/monitor_proxy/monitor/operLog/list', |
|
|
|
add = '/system_proxy/system/dict/save', |
|
|
|
del = '/monitor_proxy/monitor/operLog/remove', |
|
|
|
get = '/system_proxy/system/dict', |
|
|
|
clean = '/monitor_proxy/monitor/operLog/clean' |
|
|
|
edit = '/system_proxy/system/dict/update', |
|
|
|
|
|
|
|
del = '/system_proxy/system/dict/remove', |
|
|
|
|
|
|
|
changeStatus='/system_proxy/system/dict/changeStatus' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 查询配置列表 */ |
|
|
|
/** 查询操作日志列表 */ |
|
|
|
export const listDict = (params?: Partial<DictParams>) => defHttp.get<DictResult>({ url: Api.list, params }, { isReturnResultResponse: true }); |
|
|
|
export const listOperLog = (params?: Partial<OperLogParams>) => defHttp.get<OperLogResult>({ url: Api.list, params }, { isReturnResultResponse: true }); |
|
|
|
|
|
|
|
|
|
|
|
/** 新增配置 */ |
|
|
|
/** 删除操作日志 */ |
|
|
|
export const addDict = (params: Partial<Dict>) => defHttp.post({ url: Api.add, data: params }); |
|
|
|
export const delOperLog = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); |
|
|
|
|
|
|
|
|
|
|
|
/** 修改配置 */ |
|
|
|
/** 清除所有操作日志 */ |
|
|
|
export const editDict = (params: Partial<Dict>) => defHttp.put({ url: Api.edit, data: params }); |
|
|
|
export const cleanOperLog = () => defHttp.delete({ url: Api.clean }); |
|
|
|
|
|
|
|
|
|
|
|
/** 查询配置详细 */ |
|
|
|
|
|
|
|
export const getDict = (id: string) => defHttp.get<Dict>({ 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 } }); |
|
|
|
|
|
|
|