mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 02:08:15 +08:00
update 在线登录设备管理与前端请求一致
This commit is contained in:
parent
093808589f
commit
4b37688592
@ -92,7 +92,7 @@ public class SysUserOnlineController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 获取当前用户登录在线设备
|
* 获取当前用户登录在线设备
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getInfo")
|
@GetMapping()
|
||||||
public TableDataInfo<SysUserOnline> getInfo() {
|
public TableDataInfo<SysUserOnline> getInfo() {
|
||||||
// 获取指定账号 id 的 token 集合
|
// 获取指定账号 id 的 token 集合
|
||||||
List<String> tokenIds = StpUtil.getTokenValueListByLoginId(StpUtil.getLoginIdAsString());
|
List<String> tokenIds = StpUtil.getTokenValueListByLoginId(StpUtil.getLoginIdAsString());
|
||||||
@ -113,7 +113,7 @@ public class SysUserOnlineController extends BaseController {
|
|||||||
* @param tokenId token值
|
* @param tokenId token值
|
||||||
*/
|
*/
|
||||||
@Log(title = "在线设备", businessType = BusinessType.FORCE)
|
@Log(title = "在线设备", businessType = BusinessType.FORCE)
|
||||||
@DeleteMapping("/remove/{tokenId}")
|
@PostMapping("/{tokenId}")
|
||||||
public R<Void> remove(@PathVariable("tokenId") String tokenId) {
|
public R<Void> remove(@PathVariable("tokenId") String tokenId) {
|
||||||
try {
|
try {
|
||||||
// 获取指定账号 id 的 token 集合
|
// 获取指定账号 id 的 token 集合
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user