|  |  | 
 |  |  | import doumeemes.core.model.LoginUserInfo; | 
 |  |  | import doumeemes.core.utils.Constants; | 
 |  |  | import doumeemes.dao.business.dto.CompanyInitDataDTO; | 
 |  |  | import doumeemes.dao.ext.dto.WxLoginDTO; | 
 |  |  | import doumeemes.dao.ext.vo.WxLoginVO; | 
 |  |  | import doumeemes.dao.system.dto.LoginDTO; | 
 |  |  | import doumeemes.dao.system.dto.UpdatePwdDto; | 
 |  |  | import doumeemes.service.system.SystemLoginService; | 
 |  |  | import doumeemes.service.system.WxLoginService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiImplicitParam; | 
 |  |  | import io.swagger.annotations.ApiImplicitParams; | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SystemLoginService systemLoginService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private WxLoginService wxLoginService; | 
 |  |  |  | 
 |  |  |     @PreventRepeat(limit = 10, lockTime = 10000) | 
 |  |  |     @ApiOperation("登录") | 
 |  |  |     @PostMapping("/login") | 
 |  |  |     public ApiResponse<String> login (@Validated @RequestBody LoginDTO dto, HttpServletRequest request) { | 
 |  |  | //        dto.setCompanyId(Constants.de); | 
 |  |  |         return ApiResponse.success(systemLoginService.loginByPassword(dto, request)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreventRepeat(limit = 10, lockTime = 10000) | 
 |  |  |     @ApiOperation("平台登录") | 
 |  |  |     @PostMapping("/platform/login") | 
 |  |  |     public ApiResponse<String> platformLogin (@Validated @RequestBody LoginDTO dto, HttpServletRequest request) { | 
 |  |  | //        dto.setCompanyId(Constants.de); | 
 |  |  |         return ApiResponse.success(systemLoginService.platformLogin(dto, request)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @PreventRepeat(limit = 10, lockTime = 10000) | 
 |  |  |     @ApiOperation("微信登录") | 
 |  |  |     @GetMapping("/wxLogin") | 
 |  |  |     public ApiResponse<WxLoginVO> wxLogin (@RequestParam String code, HttpServletRequest request) { | 
 |  |  |         return ApiResponse.success(wxLoginService.wxLogin(code, request)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreventRepeat(limit = 10, lockTime = 10000) | 
 |  |  |     @ApiOperation("微信登录账号密码") | 
 |  |  |     @PostMapping("/wxAccountLogin") | 
 |  |  |     public ApiResponse<String> wxAccountLogin (@Validated @RequestBody WxLoginDTO dto, HttpServletRequest request) { | 
 |  |  |         return ApiResponse.success(wxLoginService.wxLoginByPassword(dto, request)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("退出登录") | 
 |  |  |     @PostMapping("/logout") | 
 |  |  |     public ApiResponse logout () { |