1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-04 13:04:13 +08:00

16 lines
469 B
Go
Raw Normal View History

2022-11-15 17:20:57 +08:00
import http from '@/api';
import { ResPage, ReqPage } from '../interface';
import { Log } from '../interface/log';
export const getOperationLogs = (info: ReqPage) => {
return http.post<ResPage<Log.OperationLog>>(`/logs/operation`, info);
};
export const getLoginLogs = (info: ReqPage) => {
return http.post<ResPage<Log.OperationLog>>(`/logs/login`, info);
};
2022-11-15 18:44:50 +08:00
export const cleanLogs = (logtype: string) => {
return http.post(`/logs/clean/${logtype}`);
};