修改日志打印逻辑.
This commit is contained in:
@@ -3,6 +3,7 @@ package com.orion.ops.module.infra.controller;
|
||||
import com.orion.lang.define.wrapper.HttpWrapper;
|
||||
import com.orion.ops.framework.common.annotation.IgnoreLog;
|
||||
import com.orion.ops.framework.common.annotation.RestWrapper;
|
||||
import com.orion.ops.framework.common.constant.IgnoreLogMode;
|
||||
import com.orion.ops.framework.security.core.utils.SecurityUtils;
|
||||
import com.orion.ops.module.infra.entity.request.user.UserLoginRequest;
|
||||
import com.orion.ops.module.infra.entity.request.user.UserResetPasswordRequest;
|
||||
@@ -51,7 +52,7 @@ public class AuthenticationController {
|
||||
}
|
||||
|
||||
@PermitAll
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@Operation(summary = "登出")
|
||||
@GetMapping("/logout")
|
||||
public HttpWrapper<?> logout(HttpServletRequest servletRequest) {
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.orion.ops.module.infra.controller;
|
||||
import com.orion.lang.define.wrapper.HttpWrapper;
|
||||
import com.orion.ops.framework.common.annotation.IgnoreLog;
|
||||
import com.orion.ops.framework.common.annotation.RestWrapper;
|
||||
import com.orion.ops.framework.common.constant.IgnoreLogMode;
|
||||
import com.orion.ops.module.infra.entity.vo.SystemMenuVO;
|
||||
import com.orion.ops.module.infra.entity.vo.UserPermissionVO;
|
||||
import com.orion.ops.module.infra.service.PermissionService;
|
||||
@@ -45,14 +46,14 @@ public class PermissionController {
|
||||
return HttpWrapper.ok();
|
||||
}
|
||||
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@GetMapping("/menu")
|
||||
@Operation(summary = "获取用户菜单")
|
||||
public List<SystemMenuVO> getUserMenuList() {
|
||||
return permissionService.getUserMenuList();
|
||||
}
|
||||
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@GetMapping("/permission")
|
||||
@Operation(summary = "获取用户权限")
|
||||
public UserPermissionVO getUserPermission() {
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.orion.ops.module.infra.controller;
|
||||
|
||||
import com.orion.ops.framework.common.annotation.IgnoreLog;
|
||||
import com.orion.ops.framework.common.annotation.RestWrapper;
|
||||
import com.orion.ops.framework.common.constant.IgnoreLogMode;
|
||||
import com.orion.ops.module.infra.entity.request.menu.*;
|
||||
import com.orion.ops.module.infra.entity.vo.SystemMenuVO;
|
||||
import com.orion.ops.module.infra.service.SystemMenuService;
|
||||
@@ -67,7 +68,7 @@ public class SystemMenuController {
|
||||
return systemRoleMenuService.bindRoleMenu(request);
|
||||
}
|
||||
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "通过 id 查询菜单")
|
||||
@Parameter(name = "id", description = "id", required = true)
|
||||
@@ -76,7 +77,7 @@ public class SystemMenuController {
|
||||
return systemMenuService.getSystemMenu(id);
|
||||
}
|
||||
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@PostMapping("/list")
|
||||
@Operation(summary = "查询菜单")
|
||||
@PreAuthorize("@ss.hasPermission('infra:system-menu:query')")
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.orion.ops.module.infra.controller;
|
||||
import com.orion.lang.define.wrapper.DataGrid;
|
||||
import com.orion.ops.framework.common.annotation.IgnoreLog;
|
||||
import com.orion.ops.framework.common.annotation.RestWrapper;
|
||||
import com.orion.ops.framework.common.constant.IgnoreLogMode;
|
||||
import com.orion.ops.module.infra.entity.request.role.SystemRoleCreateRequest;
|
||||
import com.orion.ops.module.infra.entity.request.role.SystemRoleQueryRequest;
|
||||
import com.orion.ops.module.infra.entity.request.role.SystemRoleStatusRequest;
|
||||
@@ -60,7 +61,7 @@ public class SystemRoleController {
|
||||
return systemRoleService.updateRoleStatus(request);
|
||||
}
|
||||
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "通过 id 查询角色")
|
||||
@Parameter(name = "id", description = "id", required = true)
|
||||
@@ -69,7 +70,7 @@ public class SystemRoleController {
|
||||
return systemRoleService.getSystemRole(id);
|
||||
}
|
||||
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "查询所有角色")
|
||||
@PreAuthorize("@ss.hasPermission('infra:system-role:query')")
|
||||
@@ -77,7 +78,7 @@ public class SystemRoleController {
|
||||
return systemRoleService.getSystemRoleList();
|
||||
}
|
||||
|
||||
@IgnoreLog
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@PostMapping("/query")
|
||||
@Operation(summary = "分页查询角色")
|
||||
@PreAuthorize("@ss.hasPermission('infra:system-role:query')")
|
||||
|
||||
Reference in New Issue
Block a user