ZQN
2024-08-27 4869cbba175ed1f8488ac1fda6fede13da72b3d9
project-admin/src/main/java/com/project/admin/controller/system/SysLoginController.java
@@ -49,23 +49,31 @@
    }
    @ApiOperation("获取验证码")
    @GetMapping("/getVerifyCode")
    @GetMapping("/verify/get")
    @RepeatSubmit
    public AjaxResult getVerifyCode(@RequestParam("phone") String phone)
    {
        return AjaxResult.success(loginService.getVerifyCode(phone));
        return AjaxResult.success(loginService.getVerifyCode(phone)?"发送成功":"发送失败");
    }
    @ApiOperation("校验验证码验证码")
    @PostMapping("/verify")
    @ApiOperation("新注册获取验证码")
    @GetMapping("/verify/getNew")
    @RepeatSubmit
    public AjaxResult getVerifyCodeNew(@RequestParam("phone") String phone)
    {
        return AjaxResult.success(loginService.getVerifyCodeNew(phone)?"发送成功":"发送失败");
    }
    @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)
    {