类 OnlineUserController
java.lang.Object
net.sohelp.boot.admin.core.base.BaseController
net.sohelp.boot.demo.web.system.user.OnlineUserController
@RestController("admin-system-online-user")
@RequestMapping("/admin/system/online/user")
public class OnlineUserController
extends BaseController
在线用户管理控制器
- 从以下版本开始:
- 2022/8/1
- 作者:
- AaronFung
-
字段概要
从类继承的字段 net.sohelp.boot.admin.core.base.BaseController
request, response -
构造器概要
构造器 -
方法概要
从类继承的方法 net.sohelp.boot.admin.core.base.BaseController
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, response, responseStream, success, success, success, success, validateToken
-
构造器详细资料
-
OnlineUserController
public OnlineUserController()
-
-
方法详细资料
-
online
@GetMapping("/page") @Permission("") public ApiResult<Pager<Map<String,Object>>> online() throws SQLException, UnsupportedEncodingException获取在线用户分页列表根据过滤条件获取当前在线用户的分页数据。只显示最近一天内登录的用户。
- 返回:
- 返回包含在线用户信息的分页结果
- 抛出:
SQLException- SQL执行异常UnsupportedEncodingException- 不支持的字符编码异常
-
forcedOffline
@PostMapping("/forcedOffline") @Permission("DEVELOPER") public ApiResult<String> forcedOffline(@RequestParam String uuid) throws SQLException 强制指定用户下线根据UUID标识强制某个在线用户退出登录状态。
- 参数:
uuid- 用户唯一标识符- 返回:
- 操作成功的提示信息
- 抛出:
SQLException- SQL执行异常
-
offlineAll
@PostMapping("/offlineAll") @Permission("DEVELOPER") public ApiResult<String> offlineAll() throws SQLException强制所有用户下线注销系统中所有的用户会话。
- 返回:
- 操作成功的提示信息
- 抛出:
SQLException- SQL执行异常
-