feat: 完成在线用户、登录日志、操作日志页面

This commit is contained in:
橙子
2024-09-04 23:31:42 +08:00
parent e393e1f525
commit 6134e76030
14 changed files with 1326 additions and 44 deletions

View 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}`, {});
};