| | |
| | | */ |
| | | @PostMapping(path = "some", consumes = MediaType.APPLICATION_JSON_VALUE) |
| | | //@SsoAop() //只有登录验证,没有权限验证 |
| | | @SsoPowerAop(power = "10100010") //登录与权限同时验证 |
| | | @SsoPowerAop(power = "10100000") //登录与权限同时验证 |
| | | @Log("查询用户") |
| | | public BaseResponse<QueryResultVo<List<BaUser>>> some(@RequestBody QueryVo vo) { |
| | | try { |
| | |
| | | //@GetMapping(path = "one", consumes = MediaType.TEXT_PLAIN_VALUE)//指前端向后传的参数类型 |
| | | @GetMapping(path = "one") |
| | | //@SsoAop() //只有登录验证,没有权限验证 |
| | | @SsoPowerAop(power = "10100010") //登录与权限同时验证 |
| | | @SsoPowerAop(power = "10100000") //登录与权限同时验证 |
| | | @Log("查询单个用户") |
| | | public BaseResponse<BaUser> one(String id) { |
| | | try { |
| | |
| | | */ |
| | | @PostMapping(path = "save", consumes = MediaType.APPLICATION_JSON_VALUE) |
| | | //@SsoAop() //只有登录验证,没有权限验证 |
| | | @SsoPowerAop(power = "10100011") //登录与权限同时验证 |
| | | @SsoPowerAop(power = "10100001") //登录与权限同时验证 |
| | | @Log("保存用户信息") |
| | | public BaseResponse<Boolean> save(@RequestBody @Valid BaUser po, BindingResult bindingResult) { |
| | | if (bindingResult != null && bindingResult.hasErrors()) { |
| | |
| | | */ |
| | | @PostMapping(path = "update", consumes = MediaType.APPLICATION_JSON_VALUE) |
| | | //@SsoAop() //只有登录验证,没有权限验证 |
| | | @SsoPowerAop(power = "10100011") //登录与权限同时验证 |
| | | @SsoPowerAop(power = "10100001") //登录与权限同时验证 |
| | | @Log("更新用户信息") |
| | | public BaseResponse<Boolean> update(@RequestBody @Validated BaUser po, BindingResult bindingResult) { |
| | | int count; |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(path="disabled") |
| | | @SsoPowerAop(power = "10100011") |
| | | @SsoPowerAop(power = "10100001") |
| | | @Log("禁用或启用用户信息") |
| | | public BaseResponse<BaRole> disabled(@RequestBody BaUser po){ |
| | | try { |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "delete") |
| | | @SsoPowerAop(power = "10100011") //登录与权限同时验证 |
| | | @SsoPowerAop(power = "10100001") //登录与权限同时验证 |
| | | @Log("删除用户") |
| | | public BaseResponse<Boolean> delete(Long id) { |
| | | int count; |
| | |
| | | */ |
| | | @PostMapping(path = "resetPassword", consumes = MediaType.APPLICATION_JSON_VALUE) |
| | | //@SsoAop() //只有登录验证,没有权限验证 |
| | | @SsoPowerAop(power = "10100011") //登录与权限同时验证 |
| | | @SsoPowerAop(power = "10100001") //登录与权限同时验证 |
| | | @Log("重置密码") |
| | | public BaseResponse<Boolean> resetPassword(@RequestBody @Validated ResetPasswordVo vo, BindingResult bindingResult) { |
| | | int count; |