员工登录 @param username 账号 @param password 密码 @param captchaKey 验证码编号 @param captchaValue 验证码值 @param request 请求信息 @return
(String username,String password,String captchaKey,String captchaValue, HttpServletRequest request)
| 54 | * @return |
| 55 | */ |
| 56 | @RequestMapping(value="/admin/login",method=RequestMethod.POST) |
| 57 | public RequestResult login(String username,String password,String captchaKey,String captchaValue, |
| 58 | HttpServletRequest request){ |
| 59 | String ip = IpAddress.getClientIpAddress(request); |
| 60 | AdminAuthorization adminAuthorization = adminService.login(username,password, captchaKey, captchaValue, ip); |
| 61 | |
| 62 | return new RequestResult(ResultCode.SUCCESS, adminAuthorization); |
| 63 | } |
| 64 | |
| 65 | |
| 66 |
nothing calls this directly
no test coverage detected