智慧保安后台管理-外网-验收版本
tangzy
2021-12-06 cc057177b2fb17aee9a173a6adbabdc578fd74c7
src/main/java/org/springblade/modules/system/controller/RoleController.java
@@ -56,7 +56,7 @@
@AllArgsConstructor
@RequestMapping(AppConstant.APPLICATION_SYSTEM_NAME + "/role")
@Api(value = "角色", tags = "角色")
@PreAuth(RoleConstant.HAS_ROLE_ADMIN)
//@PreAuth(RoleConstant.HAS_ROLE_ADMIN)
public class RoleController extends BladeController {
   private final IRoleService roleService;
@@ -70,6 +70,18 @@
   public R<RoleVO> detail(Role role) {
      Role detail = roleService.getOne(Condition.getQueryWrapper(role));
      return R.data(RoleWrapper.build().entityVO(detail));
   }
   /**
    * 详情
    */
   @GetMapping("/details")
   @ApiOperationSupport(order = 1)
   @ApiOperation(value = "详情", notes = "传入role")
   public R<Role> details(Role role) {
      Role detail = roleService.getOne(Condition.getQueryWrapper(role));
      return R.data(detail);
   }
   /**
@@ -148,4 +160,11 @@
      return R.status(temp);
   }
   @GetMapping("/selectRole")
   public R selectRole() {
      return R.data(roleService.selectRole());
   }
}