38 lines
774 B
JavaScript
38 lines
774 B
JavaScript
import request from "@/utils/request";
|
|
|
|
export function getOperationLogs(params) {
|
|
return request({
|
|
url: "/backend/operationLogs",
|
|
method: "get",
|
|
params,
|
|
});
|
|
}
|
|
|
|
export function getOperationLogDetail(id) {
|
|
return request({
|
|
url: `/backend/operationLogs/${id}`,
|
|
method: "get",
|
|
});
|
|
}
|
|
|
|
export function deleteOperationLog(id) {
|
|
return request({
|
|
url: `/backend/operationLogs/${id}`,
|
|
method: "delete",
|
|
});
|
|
}
|
|
|
|
export function batchDeleteOperationLogs(ids) {
|
|
return request({
|
|
url: "/backend/operationLogs/batchDelete",
|
|
method: "post",
|
|
data: { ids },
|
|
});
|
|
}
|
|
|
|
export function getOperationStatistics() {
|
|
return request({
|
|
url: "/backend/operationLogs/statistics",
|
|
method: "get",
|
|
});
|
|
} |