import request from '/@/utils/request'

/** 查询操作日志列表 */
export function getList(params?: any) {
  return request({
    url: '/monitor/operlog/list',
    method: 'get',
    params,
  })
}

// 删除操作日志
export const doDelete = (operId: any) => {
  return request({
    url: `/monitor/operlog/${operId}`,
    method: 'delete',
  })
}

// 清空操作日志
export function cleanOperlog() {
  return request({
    url: '/monitor/operlog/clean',
    method: 'delete',
  })
}
