办学质量监测教学评价系统
shenrongliang
2025-06-13 11d86cc6c26bb4f709e407acadf4805c2024e79f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import type { OperationLog } from './model';
 
import type { IDS, PageQuery, PageResult } from '#/api/common';
 
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
 
enum Api {
  operLogClean = '/monitor/operlog/clean',
  operLogExport = '/monitor/operlog/export',
  operLogList = '/monitor/operlog/list',
  root = '/monitor/operlog',
}
 
/**
 * 操作日志分页
 * @param params 查询参数
 * @returns 分页结果
 */
export function operLogList(params?: PageQuery) {
  return requestClient.get<PageResult<OperationLog>>(Api.operLogList, {
    params,
  });
}
 
/**
 * 删除操作日志
 * @param operIds id/ids
 */
export function operLogDelete(operIds: IDS) {
  return requestClient.deleteWithMsg<void>(`${Api.root}/${operIds}`);
}
 
/**
 * 清空全部分页日志
 */
export function operLogClean() {
  return requestClient.deleteWithMsg<void>(Api.operLogClean);
}
 
/**
 * 导出操作日志
 * @param data 查询参数
 */
export function operLogExport(data: Partial<OperationLog>) {
  return commonExport(Api.operLogExport, data);
}