| | |
| | | } |
| | | |
| | | @ApiOperation("获取验证码") |
| | | @GetMapping("/getVerifyCode") |
| | | @GetMapping("/verify/get") |
| | | @RepeatSubmit |
| | | public AjaxResult getVerifyCode(@RequestParam("phone") String phone) |
| | | { |
| | | return AjaxResult.success(loginService.getVerifyCode(phone)); |
| | | } |
| | | |
| | | @ApiOperation("校验验证码验证码") |
| | | @PostMapping("/verify") |
| | | @ApiOperation("校验验证码") |
| | | @PostMapping("/verify/check") |
| | | @RepeatSubmit |
| | | public AjaxResult verify(@RequestBody UserPhoneLoginBo bo) |
| | | { |
| | | return AjaxResult.success(loginService.verifyPhone(bo.getPhone(), bo.getCode())); |
| | | } |
| | | |
| | | @ApiOperation("手机号验证码登录") |
| | | @PostMapping("/login/phone") |
| | | @ApiOperation("验证码登录") |
| | | @PostMapping("/verify/login") |
| | | @RepeatSubmit |
| | | public AjaxResult phoneLogin(@RequestBody UserPhoneLoginBo bo) |
| | | { |