1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 16:59:17 +08:00

23 lines
690 B
Go

import http from '@/api';
import { ResPage } from '../interface';
import { Log } from '../interface/log';
export const getOperationLogs = (info: Log.SearchOpLog) => {
return http.post<ResPage<Log.OperationLog>>(`/logs/operation`, info);
};
export const getLoginLogs = (info: Log.SearchLgLog) => {
return http.post<ResPage<Log.OperationLog>>(`/logs/login`, info);
};
export const getSystemFiles = () => {
return http.get<Array<string>>(`/logs/system/files`);
};
export const getSystemLogs = (name: string) => {
return http.post<string>(`/logs/system`, { name: name });
};
export const cleanLogs = (param: Log.CleanLog) => {
return http.post(`/logs/clean`, param);
};