mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-04 13:04:13 +08:00
16 lines
469 B
Go
16 lines
469 B
Go
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);
|
|
};
|
|
|
|
export const cleanLogs = (logtype: string) => {
|
|
return http.post(`/logs/clean/${logtype}`);
|
|
};
|