将所有delete 方法修改为post

This commit is contained in:
weiweiw 2024-11-06 12:00:41 +08:00
parent 08712930c4
commit 23beb395b3
29 changed files with 40 additions and 40 deletions

View File

@ -68,6 +68,6 @@ public interface RemoteConfigService {
* @param source 请求来源使用SecurityConstants.INNER * @param source 请求来源使用SecurityConstants.INNER
* @return 成功或出错信息 * @return 成功或出错信息
*/ */
@DeleteMapping("/{configIds}") @PostMapping("/delete/{configIds}")
public AjaxResult remove(@PathVariable("configIds") Long[] configIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult remove(@PathVariable("configIds") Long[] configIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
} }

View File

@ -57,6 +57,6 @@ public interface RemoteDeptService {
* @param source 请求来源使用SecurityConstants.INNER * @param source 请求来源使用SecurityConstants.INNER
* @return 成功或出错信息 * @return 成功或出错信息
*/ */
@DeleteMapping("/dept/{deptId}") @PostMapping("/delete/dept/{deptId}")
public AjaxResult remove(@PathVariable("deptId") Long deptId, @RequestHeader(SecurityConstants.FROM_SOURCE)String source); public AjaxResult remove(@PathVariable("deptId") Long deptId, @RequestHeader(SecurityConstants.FROM_SOURCE)String source);
} }

View File

@ -66,6 +66,6 @@ public interface RemoteDictDataService {
* @param source 请求来源使用SecurityConstants.INNER * @param source 请求来源使用SecurityConstants.INNER
* @return 成功或出错信息 * @return 成功或出错信息
*/ */
@DeleteMapping("/dict/data/{dictCodes}") @PostMapping("/delete/dict/data/{dictCodes}")
public AjaxResult remove(@PathVariable("dictCodes") Long[] dictCodes, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult remove(@PathVariable("dictCodes") Long[] dictCodes, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
} }

View File

@ -59,7 +59,7 @@ public interface RemoteDictTypeService {
* @param source 请求来源使用SecurityConstants.INNER * @param source 请求来源使用SecurityConstants.INNER
* @return 成功或出错信息 * @return 成功或出错信息
*/ */
@DeleteMapping("/dict/type/{dictIds}") @PostMapping("/delete/dict/type/{dictIds}")
public AjaxResult remove(@PathVariable("dictIds") Long[] dictIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult remove(@PathVariable("dictIds") Long[] dictIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**

View File

@ -43,6 +43,6 @@ public interface RemoteFileService
* @param objectKey * @param objectKey除mongodb 存fileid之外其他均存上传文件的网络路径 * @param objectKey * @param objectKey除mongodb 存fileid之外其他均存上传文件的网络路径
* @return 成功或失败信息 * @return 成功或失败信息
*/ */
@DeleteMapping("/deleteFile") @PostMapping("/deleteFile")
public AjaxResult deleteFile(@RequestParam("objectKey") String objectKey); public AjaxResult deleteFile(@RequestParam("objectKey") String objectKey);
} }

View File

@ -57,6 +57,6 @@ public interface RemoteNoticeService {
* @param source 内部请求的请求头标志使用SecurityConstants.INNER * @param source 内部请求的请求头标志使用SecurityConstants.INNER
* @return 删除公告影响行数或错误信息 * @return 删除公告影响行数或错误信息
*/ */
@DeleteMapping("/notice/{noticeIds}") @PostMapping("/delete/notice/{noticeIds}")
public AjaxResult remove(@PathVariable("noticeIds") Long[] noticeIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult remove(@PathVariable("noticeIds") Long[] noticeIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
} }

View File

@ -57,7 +57,7 @@ public interface RemotePostService {
* @param source 内部请求标志使用SecurityConstants.INNER * @param source 内部请求标志使用SecurityConstants.INNER
* @return 删除岗位影响的行数或错误信息 * @return 删除岗位影响的行数或错误信息
*/ */
@DeleteMapping("/post/{postIds}") @PostMapping("/delete/post/{postIds}")
public AjaxResult remove(@PathVariable("postIds") Long[] postIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult remove(@PathVariable("postIds") Long[] postIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

View File

@ -77,7 +77,7 @@ public interface RemoteRoleService {
* @param source 请求来源使用SecurityConstants.INNER * @param source 请求来源使用SecurityConstants.INNER
* @return 删除角色影响的行数或错误信息 * @return 删除角色影响的行数或错误信息
*/ */
@DeleteMapping("/role/{roleIds}") @PostMapping("/delete/role/{roleIds}")
public AjaxResult remove(@PathVariable("roleIds") Long[] roleIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult remove(@PathVariable("roleIds") Long[] roleIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**

View File

@ -125,7 +125,7 @@ public interface RemoteUserService {
* @param source 请求来源 * @param source 请求来源
* @return 删除用户影响的行数或错误信息 * @return 删除用户影响的行数或错误信息
*/ */
@DeleteMapping("/user/{userIds}") @PostMapping("/delete/user/{userIds}")
public AjaxResult remove(@PathVariable("userIds") Long[] userIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult remove(@PathVariable("userIds") Long[] userIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**

View File

@ -130,7 +130,7 @@ public class TokenController {
* @param request HTTP 请求 * @param request HTTP 请求
* @return 登出结果 * @return 登出结果
*/ */
@DeleteMapping("logout") @PostMapping("logout")
public R<?> logout(HttpServletRequest request) { public R<?> logout(HttpServletRequest request) {
try { try {
String token = SecurityUtils.getToken(request); String token = SecurityUtils.getToken(request);

View File

@ -11,6 +11,7 @@ import com.bonus.common.core.utils.sms.SmsUtils;
import com.bonus.common.redis.service.RedisService; import com.bonus.common.redis.service.RedisService;
import com.bonus.common.security.utils.SecurityUtils; import com.bonus.common.security.utils.SecurityUtils;
import com.bonus.system.api.domain.SysUser; import com.bonus.system.api.domain.SysUser;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -46,8 +47,11 @@ public class SysPasswordService {
public void validate(SysUser user, String password, long startTime) { public void validate(SysUser user, String password, long startTime) {
String username = user.getUserName(); String username = user.getUserName();
int retryCount = redisService.getCacheObject(getCacheKey(username)); Integer retryCount = redisService.getCacheObject(getCacheKey(username));
if(ObjectUtils.isEmpty (retryCount)){
retryCount = 0;
}
// 基本锁定时间为 lockTime // 基本锁定时间为 lockTime
long dynamicLockTime = lockTime; long dynamicLockTime = lockTime;

View File

@ -1,4 +1,4 @@
#Thu Sep 19 15:42:27 CST 2024 #Wed Nov 06 11:32:35 CST 2024
anotherKey=anotherValue anotherKey=anotherValue
key=value key=value
anotherKey1=anotherValue1 anotherKey1=anotherValue1

View File

@ -106,7 +106,7 @@ public class SysFileController
* 从各个存储平台删除文件 * 从各个存储平台删除文件
* @param objectKey * @param objectKey除mongodb 存fileid之外其他均存上传文件的网络路径 * @param objectKey * @param objectKey除mongodb 存fileid之外其他均存上传文件的网络路径
*/ */
@DeleteMapping("/deleteFile") @PostMapping("/deleteFile")
public AjaxResult deleteFile(@RequestParam("objectKey") String objectKey) { public AjaxResult deleteFile(@RequestParam("objectKey") String objectKey) {
try { try {
String fileUrl = Base64Utils.decodeUrl(URLDecoder.decode(objectKey)); String fileUrl = Base64Utils.decodeUrl(URLDecoder.decode(objectKey));
@ -159,7 +159,7 @@ public class SysFileController
* @param folderName 文件夹名默认为根目录 * @param folderName 文件夹名默认为根目录
* @return 文件夹网络路径 * @return 文件夹网络路径
*/ */
@DeleteMapping("/deleteFolder") @PostMapping("/deleteFolder")
public AjaxResult deleteFolder(@RequestParam("folderName") String folderName) { public AjaxResult deleteFolder(@RequestParam("folderName") String folderName) {
return AjaxResult.success("文件夹删除成功"); return AjaxResult.success("文件夹删除成功");
} }

View File

@ -131,7 +131,7 @@ public class GenController extends BaseController
* 删除代码生成 * 删除代码生成
*/ */
@RequiresPermissions("tool:gen:remove") @RequiresPermissions("tool:gen:remove")
@DeleteMapping("/{tableIds}") @PostMapping("/delete/{tableIds}")
@SysLog(title = "代码生成", businessType = OperaType.DELETE,logType = 0,module = "系统工具->代码生成",details = "删除代码生成") @SysLog(title = "代码生成", businessType = OperaType.DELETE,logType = 0,module = "系统工具->代码生成",details = "删除代码生成")
public AjaxResult remove(@PathVariable Long[] tableIds) public AjaxResult remove(@PathVariable Long[] tableIds)
{ {

View File

@ -105,7 +105,7 @@ public class ${ClassName}Controller extends BaseController
* 删除${functionName} * 删除${functionName}
*/ */
@RequiresPermissions("${permissionPrefix}:remove") @RequiresPermissions("${permissionPrefix}:remove")
@DeleteMapping("/{${pkColumn.javaField}s}") @PostMapping("/delete/{${pkColumn.javaField}s}")
@SysLog(title = "${functionName}", businessType = OperaType.DELETE,logType = 0,module = "${functionName}",details = "导出${functionName}列表") @SysLog(title = "${functionName}", businessType = OperaType.DELETE,logType = 0,module = "${functionName}",details = "导出${functionName}列表")
public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s)
{ {

View File

@ -177,7 +177,7 @@ public class SysJobController extends BaseController
* 删除定时任务 * 删除定时任务
*/ */
@RequiresPermissions("monitor:job:remove") @RequiresPermissions("monitor:job:remove")
@DeleteMapping("/{jobIds}") @PostMapping("/delete/{jobIds}")
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务",details = "删除定时任务") @SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务",details = "删除定时任务")
public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException
{ {

View File

@ -72,7 +72,7 @@ public class SysJobLogController extends BaseController
* 删除定时任务调度日志 * 删除定时任务调度日志
*/ */
@RequiresPermissions("monitor:job:remove") @RequiresPermissions("monitor:job:remove")
@DeleteMapping("/{jobLogIds}") @PostMapping("/delete/{jobLogIds}")
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "删除定时任务调度日志") @SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "删除定时任务调度日志")
public AjaxResult remove(@PathVariable Long[] jobLogIds) public AjaxResult remove(@PathVariable Long[] jobLogIds)
{ {
@ -83,7 +83,7 @@ public class SysJobLogController extends BaseController
* 清空定时任务调度日志 * 清空定时任务调度日志
*/ */
@RequiresPermissions("monitor:job:remove") @RequiresPermissions("monitor:job:remove")
@DeleteMapping("/clean") @PostMapping("/clean")
@SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "清空定时任务调度日志") @SysLog(title = "定时任务", businessType = OperaType.DELETE,logType = 0,module = "系统监控->定时任务->调度日志",details = "清空定时任务调度日志")
public AjaxResult clean() public AjaxResult clean()
{ {

View File

@ -140,7 +140,7 @@ public class SysConfigController extends BaseController {
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:config:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:config:remove"))
@SysLog(title = "参数配置", businessType = OperaType.DELETE,logType = 0,module = "系统管理->参数配置") @SysLog(title = "参数配置", businessType = OperaType.DELETE,logType = 0,module = "系统管理->参数配置")
@DeleteMapping("/{configIds}") @PostMapping("/delete/{configIds}")
public AjaxResult remove(@PathVariable Long[] configIds) { public AjaxResult remove(@PathVariable Long[] configIds) {
try{ try{
configService.deleteConfigByIds(configIds); configService.deleteConfigByIds(configIds);
@ -155,7 +155,7 @@ public class SysConfigController extends BaseController {
* 刷新参数缓存 * 刷新参数缓存
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:config:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:config:remove"))
@DeleteMapping("/refreshCache") @PostMapping("/refreshCache")
@SysLog(title = "参数配置", businessType = OperaType.FLASH,logType = 0,module = "系统管理->参数配置",details = "刷新参数缓存") @SysLog(title = "参数配置", businessType = OperaType.FLASH,logType = 0,module = "系统管理->参数配置",details = "刷新参数缓存")
public AjaxResult refreshCache() { public AjaxResult refreshCache() {
try{ try{

View File

@ -138,7 +138,7 @@ public class SysDeptController extends BaseController
*/ */
@RequiresRoles("admin") @RequiresRoles("admin")
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:dept:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:dept:remove"))
@DeleteMapping("/{deptId}") @PostMapping("/delete/{deptId}")
@SysLog(title = "部门管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->部门管理") @SysLog(title = "部门管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->部门管理")
public AjaxResult remove(@PathVariable Long deptId) { public AjaxResult remove(@PathVariable Long deptId) {
try{ try{

View File

@ -141,7 +141,7 @@ public class SysDictDataController extends BaseController
* 删除字典数据 * 删除字典数据
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:dict:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:dict:remove"))
@DeleteMapping("/{dictCodes}") @PostMapping("/delete/{dictCodes}")
@SysLog(title = "字典管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->字典管理") @SysLog(title = "字典管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->字典管理")
public AjaxResult remove(@PathVariable Long[] dictCodes) { public AjaxResult remove(@PathVariable Long[] dictCodes) {
try{ try{

View File

@ -125,7 +125,7 @@ public class SysDictTypeController extends BaseController
* 删除字典类型 * 删除字典类型
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:dict:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:dict:remove"))
@DeleteMapping("/{dictIds}") @PostMapping("/delete/{dictIds}")
@SysLog(title = "字典管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->字典管理") @SysLog(title = "字典管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->字典管理")
public AjaxResult remove(@PathVariable Long[] dictIds) { public AjaxResult remove(@PathVariable Long[] dictIds) {
try{ try{
@ -143,7 +143,7 @@ public class SysDictTypeController extends BaseController
* 刷新字典缓存 * 刷新字典缓存
*/ */
@RequiresPermissions("system:dict:remove") @RequiresPermissions("system:dict:remove")
@DeleteMapping("/refreshCache") @PostMapping("/refreshCache")
@SysLog(title = "字典管理", businessType = OperaType.FLASH,logType = 0,module = "系统管理->字典管理",details = "刷新字典缓存") @SysLog(title = "字典管理", businessType = OperaType.FLASH,logType = 0,module = "系统管理->字典管理",details = "刷新字典缓存")
public AjaxResult refreshCache() { public AjaxResult refreshCache() {
try{ try{

View File

@ -56,14 +56,14 @@ public class SysLogininforController extends BaseController
} }
@RequiresPermissions("system:logininfor:remove") @RequiresPermissions("system:logininfor:remove")
@DeleteMapping("/{infoIds}") @PostMapping("/delete/{infoIds}")
public AjaxResult remove(@PathVariable Long[] infoIds) public AjaxResult remove(@PathVariable Long[] infoIds)
{ {
return toAjax(logininforService.deleteLogininforByIds(infoIds)); return toAjax(logininforService.deleteLogininforByIds(infoIds));
} }
@RequiresPermissions("system:logininfor:remove") @RequiresPermissions("system:logininfor:remove")
@DeleteMapping("/clean") @PostMapping("/clean")
public AjaxResult clean() public AjaxResult clean()
{ {
logininforService.cleanLogininfor(); logininforService.cleanLogininfor();

View File

@ -157,7 +157,7 @@ public class SysMenuController extends BaseController
* 删除菜单 * 删除菜单
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:menu:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:menu:remove"))
@DeleteMapping("/{menuId}") @PostMapping("/delete/{menuId}")
@SysLog(title = "菜单管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->菜单管理") @SysLog(title = "菜单管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->菜单管理")
public AjaxResult remove(@PathVariable("menuId") Long menuId) { public AjaxResult remove(@PathVariable("menuId") Long menuId) {
try{ try{

View File

@ -110,7 +110,7 @@ public class SysNoticeController extends BaseController
* 删除通知公告 * 删除通知公告
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:notice:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:notice:remove"))
@DeleteMapping("/{noticeIds}") @PostMapping("/delete/{noticeIds}")
@SysLog(title = "通知公告", businessType = OperaType.DELETE,logType = 0,module = "系统管理->通知公告") @SysLog(title = "通知公告", businessType = OperaType.DELETE,logType = 0,module = "系统管理->通知公告")
public AjaxResult remove(@PathVariable Long[] noticeIds) { public AjaxResult remove(@PathVariable Long[] noticeIds) {
try{ try{

View File

@ -53,14 +53,14 @@ public class SysOperlogController extends BaseController
} }
@RequiresPermissions("system:operlog:remove") @RequiresPermissions("system:operlog:remove")
@DeleteMapping("/{operIds}") @PostMapping("/delete/{operIds}")
public AjaxResult remove(@PathVariable Long[] operIds) public AjaxResult remove(@PathVariable Long[] operIds)
{ {
return toAjax(operLogService.deleteOperLogByIds(operIds)); return toAjax(operLogService.deleteOperLogByIds(operIds));
} }
@RequiresPermissions("system:operlog:remove") @RequiresPermissions("system:operlog:remove")
@DeleteMapping("/clean") @PostMapping("/clean")
public AjaxResult clean() public AjaxResult clean()
{ {
operLogService.cleanOperLog(); operLogService.cleanOperLog();

View File

@ -130,7 +130,7 @@ public class SysPostController extends BaseController {
* 删除岗位 * 删除岗位
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:post:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:post:remove"))
@DeleteMapping("/{postIds}") @PostMapping("/delete/{postIds}")
@SysLog(title = "岗位管理", businessType = OperaType.DELETE, logType = 0, module = "系统管理->岗位管理") @SysLog(title = "岗位管理", businessType = OperaType.DELETE, logType = 0, module = "系统管理->岗位管理")
public AjaxResult remove(@PathVariable Long[] postIds) { public AjaxResult remove(@PathVariable Long[] postIds) {
try { try {

View File

@ -180,7 +180,7 @@ public class SysRoleController extends BaseController
* 删除角色 * 删除角色
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:role:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:role:remove"))
@DeleteMapping("/{roleIds}") @PostMapping("/delete/{roleIds}")
@SysLog(title = "角色管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->角色管理",details = "删除角色信息") @SysLog(title = "角色管理", businessType = OperaType.DELETE,logType = 0,module = "系统管理->角色管理",details = "删除角色信息")
public AjaxResult remove(@PathVariable Long[] roleIds) { public AjaxResult remove(@PathVariable Long[] roleIds) {
try{ try{

View File

@ -335,7 +335,7 @@ public class SysUserController extends BaseController {
* 删除用户 * 删除用户
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:user:remove")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:user:remove"))
@DeleteMapping("/{userIds}") @PostMapping("/delete/{userIds}")
@SysLog(title = "用户管理", businessType = OperaType.DELETE, logType = 0, module = "系统管理->用户管理", details = "删除用户信息") @SysLog(title = "用户管理", businessType = OperaType.DELETE, logType = 0, module = "系统管理->用户管理", details = "删除用户信息")
public AjaxResult remove(@PathVariable("userIds") Long[] userIds) { public AjaxResult remove(@PathVariable("userIds") Long[] userIds) {
try { try {

View File

@ -8,11 +8,7 @@ import java.util.List;
import com.bonus.common.log.annotation.SysLog; import com.bonus.common.log.annotation.SysLog;
import com.bonus.common.log.enums.OperaType; import com.bonus.common.log.enums.OperaType;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bonus.common.core.constant.CacheConstants; import com.bonus.common.core.constant.CacheConstants;
import com.bonus.common.core.utils.StringUtils; import com.bonus.common.core.utils.StringUtils;
import com.bonus.common.core.web.controller.BaseController; import com.bonus.common.core.web.controller.BaseController;
@ -72,7 +68,7 @@ public class SysUserOnlineController extends BaseController
* 强退用户 * 强退用户
*/ */
@RequiresPermissions("monitor:online:forceLogout") @RequiresPermissions("monitor:online:forceLogout")
@DeleteMapping("/{tokenId}") @PostMapping("/delete/{tokenId}")
@SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "在线用户退出") @SysLog(title = "在线用户", businessType = OperaType.UPDATE,logType = 0,module = "系统监控->在线用户",details = "在线用户退出")
public AjaxResult forceLogout(@PathVariable String tokenId) { public AjaxResult forceLogout(@PathVariable String tokenId) {
try{ try{