| | |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pmsGlobal.aop.OperationDescription; |
| | | import com.dy.pmsGlobal.pojoBa.BaRole; |
| | | import jakarta.validation.Valid; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | */ |
| | | @PostMapping(path="save") |
| | | @SsoPowerAop(power = "10100011") |
| | | @OperationDescription("保存角色信息") |
| | | public BaseResponse<BaRole> save(@RequestBody @Valid BaRole role,BindingResult bindingResult){ |
| | | try { |
| | | role.setDeleted(false); |
| | |
| | | */ |
| | | @PostMapping(path="update") |
| | | @SsoPowerAop(power = "10100011") |
| | | @OperationDescription("更新角色信息") |
| | | public BaseResponse<BaRole> update(@RequestBody @Valid BaRole role,BindingResult bindingResult){ |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(roleSv.update(role)); |
| | |
| | | */ |
| | | @PostMapping(path="delete") |
| | | @SsoPowerAop(power = "10100011") |
| | | @OperationDescription("删除角色信息") |
| | | public BaseResponse<BaRole> delete(String id,BindingResult bindingResult){ |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(roleSv.delete(Long.parseLong(id))); |
| | |
| | | */ |
| | | @GetMapping(path="one") |
| | | @SsoPowerAop(power = "10100010") //登录与权限同时验证 |
| | | @OperationDescription("根据ID查询角色信息") |
| | | public BaseResponse<BaRole> one(String id){ |
| | | try{ |
| | | BaRole role=roleSv.selectById(id); |
| | |
| | | */ |
| | | @PostMapping(path="some") |
| | | @SsoPowerAop(power = "10100010") |
| | | @OperationDescription("分页查询角色信息") |
| | | public BaseResponse<QueryResultVo<List<BaRole>>> some(@RequestBody QueryVo vo){ |
| | | try { |
| | | QueryResultVo<List<BaRole>> list = roleSv.selectSome(vo) ; |