| | |
| | | }) |
| | | @GetMapping("/users") |
| | | public PageResult<SysUser> findUsers(@RequestParam Map<String, Object> params) { |
| | | // log.info("租户ID:"+ TenantContextHolder.getTenant()); |
| | | // log.info("IP:"+request.getHeader(CommonConstant.USER_AGENT_IP)); |
| | | return appUserService.findUsers(params); |
| | | } |
| | | /** |
| | |
| | | return ResultBody.failed(ADMIN_CHANGE_MSG); |
| | | } |
| | | return appUserService.updatePassword(id, null, null, true); |
| | | } |
| | | |
| | | /** |
| | | * 返回给Python加密密码 |
| | | */ |
| | | @GetMapping(value = "/users/python") |
| | | public ResultBody jiaMipython(@RequestBody String password) { |
| | | if (password==null||"".equals(password)) { |
| | | return ResultBody.failed().msg("请输入密码"); |
| | | } |
| | | ResultBody resultBody = appUserService.jiaMipython(password); |
| | | return resultBody; |
| | | } |
| | | |
| | | /** |
| | |
| | | * 根据map查询 |
| | | */ |
| | | private boolean checkAdmin(long id) { |
| | | return id == 1L; |
| | | return id == CommonConstant.ADMIN_USER_ID; |
| | | } |
| | | |
| | | @PostMapping("/users/findAll") |