fix(projects): 修改强退在线设备接口

This commit is contained in:
AN
2025-06-27 21:26:47 +08:00
parent 3628c2496a
commit dbcf8d422a
5 changed files with 47 additions and 9 deletions

View File

@ -20,6 +20,17 @@ export function fetchForceLogout(tokenId: string) {
method: 'delete'
});
}
/**
* 强退当前在线设备
*
* @param tokenId - 令牌ID
*/
export function fetchKickOutCurrentDevice(tokenId: string) {
return request<boolean>({
url: `/monitor/online/myself/${tokenId}`,
method: 'delete'
});
}
/** 获取在线设备列表 */
export function fetchGetOnlineDeviceList(params?: Api.Monitor.OnlineUserSearchParams) {