Files
1Panel/frontend/src/api/modules/log.ts
T
2023-02-08 14:18:25 +08:00

16 lines
476 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 cleanLogs = (param: Log.CleanLog) => {
return http.post(`/logs/clean`, param);
};