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

16 lines
476 B
Go
Raw Normal View History

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
};