From 8c6cf5bc434f1f236b9a12c45c05636a3903f8c7 Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: 星期五, 19 四月 2024 13:02:14 +0800 Subject: [PATCH] !104 add 新增在线登录设备管理 * update 在线登录设备管理删除权限 * add 新增在线登录设备管理 --- src/api/monitor/online/index.ts | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/api/monitor/online/index.ts b/src/api/monitor/online/index.ts index 3d9034a..7484702 100644 --- a/src/api/monitor/online/index.ts +++ b/src/api/monitor/online/index.ts @@ -18,3 +18,19 @@ method: 'delete' }); } + +// 鑾峰彇褰撳墠鐢ㄦ埛鐧诲綍鍦ㄧ嚎璁惧 +export function getOnline() { + return request({ + url: '/monitor/online', + method: 'get' + }); +} + +// 鍒犻櫎褰撳墠鍦ㄧ嚎璁惧 +export function delOnline(tokenId: string) { + return request({ + url: '/monitor/online/' + tokenId, + method: 'post' + }); +} -- Gitblit v1.9.3