|  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("切换企业 - 后端") | 
 |  |  |     @GetMapping("/switchCompany") | 
 |  |  |     public ApiResponse<String> switchCompany (@RequestParam Integer companyId, HttpServletRequest request) { | 
 |  |  |         return ApiResponse.success(systemLoginService.switchCompany(getLoginUser(),companyId, request)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @PreventRepeat(limit = 10, lockTime = 10000) | 
 |  |  |     @ApiOperation("微信小程序登录") | 
 |  |  |     @PostMapping("/loginByWxMini") | 
 |  |  | 
 |  |  |         return ApiResponse.success(systemLoginService.loginByWxMini(dto, request)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "授权openId",notes = "登录后") | 
 |  |  |     @GetMapping("/wxEmpower") | 
 |  |  |     public ApiResponse<String> wxEmpower (@RequestParam String code, HttpServletRequest request) { | 
 |  |  |         LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); | 
 |  |  |         return ApiResponse.success(systemLoginService.wxEmpower(code, loginUserInfo.getId())); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("退出登录") | 
 |  |  |     @PostMapping("/logout") | 
 |  |  |     public ApiResponse logout () { | 
 |  |  |         systemLoginService.cleaOpenid(); | 
 |  |  |         Subject subject = SecurityUtils.getSubject(); | 
 |  |  |         subject.logout(); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Trace(withRequestParameters = false) | 
 |  |  |     @ApiOperation("修改当前用户密码") | 
 |  |  |     @PostMapping("/updatePwd") |