feat(system): 优化删除操作并添加清除在线用户功能

- 重构了多个模块的删除操作,支持批量删除
- 在线监控模块增加了清除所有在线用户的功能
- 优化了前端API接口,提高了可维护性
This commit is contained in:
zhangtao
2025-07-14 00:52:32 +08:00
parent 4d08c96087
commit 90832d0fa2
41 changed files with 301 additions and 265 deletions
+10 -2
View File
@@ -11,11 +11,19 @@ const OnlineAPI = {
},
// 强退用户
deleteOnline(body: any) {
deleteOnline(session_id: string) {
return request<ApiResponse>({
url: `/monitor/online/delete`,
method: "delete",
data: body,
data: session_id,
});
},
// 强退用户
clearOnline() {
return request<ApiResponse>({
url: `/monitor/online/clear`,
method: "delete",
});
},
};