AIManage/src/api/log/index.js

28 lines
570 B
JavaScript
Raw Normal View History

2024-07-06 00:13:43 +08:00
import request from "@/utils/request";
const serverState=()=>{
return request({
url: "/logs/server_state",
method: "get"
});
}
2024-07-06 22:58:31 +08:00
//获取用户操作状态通知
const userOperationNotice=()=>{
return request({
url: "/logs/user_operation/notice",
method: "get"
});
}
2024-07-18 00:13:00 +08:00
//获取用户操作详情
const userOperation=(operation_id)=>{
return request({
url: `/logs/user_operation/${operation_id}`,
method: "get"
});
}
2024-07-06 00:13:43 +08:00
export default {
2024-07-06 22:58:31 +08:00
serverState,
2024-07-18 00:13:00 +08:00
userOperationNotice,
userOperation
2024-07-06 00:13:43 +08:00
}