init: 初始系统模板

This commit is contained in:
TsMask
2023-09-05 14:38:23 +08:00
parent a5bc16ae4f
commit 1075c8ae4f
130 changed files with 22531 additions and 1 deletions

26
src/api/monitor/online.ts Normal file
View File

@@ -0,0 +1,26 @@
import { request } from '@/plugins/http-fetch';
/**
* 查询在线用户列表
* @param query 查询参数
* @returns object
*/
export function listOnline(query: Record<string, any>) {
return request({
url: '/monitor/online/list',
method: 'get',
params: query,
});
}
/**
* 强退用户
* @param tokenId 授权标识
* @returns object
*/
export function forceLogout(tokenId: string) {
return request({
url: `/monitor/online/${tokenId}`,
method: 'delete',
});
}