| | |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | @Operation(summary = "解除当前小程序微信绑定") |
| | | @PostMapping("/unbind-openid") |
| | | public Result<Void> unbindOpenId() { |
| | | miniAuthApplicationService.unbindMiniOpenIdAndLogout(); |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | private Map<String, Object> buildMeResponse(MpUser u) { |
| | | Map<String, Object> m = new HashMap<>(); |
| | | m.put("mpUserId", u.getId()); |
| | |
| | | m.put("deptId", u.getDeptId()); |
| | | SysDept dept = u.getDeptId() == null ? null : sysDeptMapper.selectById(u.getDeptId()); |
| | | m.put("deptName", dept == null ? null : dept.getDeptName()); |
| | | m.put("deptLeaderFlag", Boolean.TRUE.equals(u.getDeptLeaderFlag())); |
| | | m.put("deptLeaderFlag", false); |
| | | m.put("nickName", u.getNickName()); |
| | | m.put("avatarUrl", u.getAvatarUrl()); |
| | | m.put("mobile", u.getMobile()); |