import http from '@/api'; import { ResPage } from '../interface'; import { Log } from '../interface/log'; export const getOperationLogs = (info: Log.SearchOpLog) => { return http.post>(`/core/logs/operation`, info); }; export const getLoginLogs = (info: Log.SearchLgLog) => { return http.post>(`/core/logs/login`, info); }; export const getSystemFiles = () => { return http.get>(`/logs/system/files`); }; export const cleanLogs = (param: Log.CleanLog) => { return http.post(`/core/logs/clean`, param); }; export const searchTasks = (req: Log.SearchTaskReq) => { return http.post>(`/logs/tasks/search`, req); }; export const countExecutingTask = () => { return http.get(`/logs/tasks/executing/count`); };