This commit is contained in:
2023-05-28 00:16:04 +08:00
parent 58bce3f82e
commit 47b47b40a8
3 changed files with 133 additions and 1 deletions

18
src/api/monitor/online.js Normal file
View File

@ -0,0 +1,18 @@
import request from '@/utils/request'
// 查询在线用户列表
export function list(query) {
return request({
url: '/monitor/online/list',
method: 'get',
params: query
})
}
// 强退用户
export function forceLogout(username, deviceSn) {
return request({
url: '/monitor/online/' + username + '/' + deviceSn,
method: 'delete'
})
}