You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
949 B
22 lines
949 B
/** |
|
* 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 |
|
* Copyright © 2023-2023 <a href="https://godolphinx.org">海豚生态开源社区</a> All rights reserved. |
|
* author wangxiang4 |
|
*/ |
|
import type { OperLogParams, OperLog, OperLogResult } from '/@/api/platform/monitor/entity/operLog'; |
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
|
enum Api { |
|
list = '/monitor_proxy/monitor/operLog/list', |
|
del = '/monitor_proxy/monitor/operLog/remove', |
|
clean = '/monitor_proxy/monitor/operLog/clean' |
|
} |
|
|
|
/** 查询操作日志列表 */ |
|
export const listOperLog = (params?: Partial<OperLogParams>) => defHttp.get<OperLogResult>({ url: Api.list, params }, { isReturnResultResponse: true }); |
|
|
|
/** 删除操作日志 */ |
|
export const delOperLog = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); |
|
|
|
/** 清除所有操作日志 */ |
|
export const cleanOperLog = () => defHttp.delete({ url: Api.clean });
|
|
|