mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-06 00:57:08 +08:00
15 lines
410 B
TypeScript
15 lines
410 B
TypeScript
import type * as Monitor from './type'
|
|
import http from '@/utils/http'
|
|
|
|
const BASE_URL = '/monitor/online'
|
|
|
|
/** @desc 查询在线用户列表 */
|
|
export function listOnlineUser(query: Monitor.OnlineUserPageQuery) {
|
|
return http.get<PageRes<Monitor.OnlineUserResp[]>>(`${BASE_URL}`, query)
|
|
}
|
|
|
|
/** @desc 强退在线用户 */
|
|
export function kickout(token: string) {
|
|
return http.del(`${BASE_URL}/${token}`)
|
|
}
|