2022-11-15 17:20:57 +08:00
|
|
|
import http from '@/api';
|
2023-02-07 18:48:32 +08:00
|
|
|
import { ResPage } from '../interface';
|
2022-11-15 17:20:57 +08:00
|
|
|
import { Log } from '../interface/log';
|
|
|
|
|
2023-02-07 18:48:32 +08:00
|
|
|
export const getOperationLogs = (info: Log.SearchOpLog) => {
|
2022-11-15 17:20:57 +08:00
|
|
|
return http.post<ResPage<Log.OperationLog>>(`/logs/operation`, info);
|
|
|
|
};
|
|
|
|
|
2023-02-07 18:48:32 +08:00
|
|
|
export const getLoginLogs = (info: Log.SearchLgLog) => {
|
2022-11-15 17:20:57 +08:00
|
|
|
return http.post<ResPage<Log.OperationLog>>(`/logs/login`, info);
|
|
|
|
};
|
2022-11-15 18:44:50 +08:00
|
|
|
|
2023-01-04 22:31:51 +08:00
|
|
|
export const cleanLogs = (param: Log.CleanLog) => {
|
|
|
|
return http.post(`/logs/clean`, param);
|
2022-11-15 18:44:50 +08:00
|
|
|
};
|