| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping(path="delete") |
| | | @GetMapping(path="delete") |
| | | @SsoPowerAop(power = "10100011") |
| | | @Log("删除角色信息") |
| | | public BaseResponse<BaRole> delete(String id){ |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 禁用角色信息 |
| | | * @param role |
| | | * @return |
| | | */ |
| | | @PostMapping(path="disabled") |
| | | @SsoPowerAop(power = "10100011") |
| | | @Log("禁用或启用角色信息") |
| | | public BaseResponse<BaRole> disabled(@RequestBody BaRole role){ |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(roleSv.disabled(role.id,role.disabled)); |
| | | }catch (Exception e){ |
| | | log.error("禁用角色异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据ID查询角色信息 |