feat: 完成在线用户、登录日志、操作日志页面
This commit is contained in:
12
Yi.Pure.Vue3/src/api/monitor/online.ts
Normal file
12
Yi.Pure.Vue3/src/api/monitor/online.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { http } from "@/utils/http";
|
||||
import type { Result, ResultPage } from "@/api/result";
|
||||
|
||||
/** 查询在线用户列表 */
|
||||
export const getOnlineList = (query?: object) => {
|
||||
return http.request<ResultPage>("get", "/online", { params: query });
|
||||
};
|
||||
|
||||
/** 强退用户 */
|
||||
export const forceLogout = (tokenId?: object) => {
|
||||
return http.request<Result>("delete", `/online/${tokenId}`, {});
|
||||
};
|
||||
Reference in New Issue
Block a user