|
@@ -82,7 +82,7 @@ public class AuthController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/refresh-token")
|
|
|
- @PermitAll
|
|
|
+ @PermitAll //允许所有人进行访问,不进行鉴权
|
|
|
@Operation(summary = "刷新令牌")
|
|
|
@Parameter(name = "refreshToken", description = "刷新令牌", required = true)
|
|
|
public CommonResult<AuthLoginRespVO> refreshToken(@RequestParam("refreshToken") String refreshToken) {
|
|
@@ -118,14 +118,14 @@ public class AuthController {
|
|
|
// ========== 短信登录相关 ==========
|
|
|
|
|
|
@PostMapping("/sms-login")
|
|
|
- @PermitAll
|
|
|
+ @PermitAll //无需登录,允许所有用户访问
|
|
|
@Operation(summary = "使用短信验证码登录")
|
|
|
public CommonResult<AuthLoginRespVO> smsLogin(@RequestBody @Valid AuthSmsLoginReqVO reqVO) {
|
|
|
return success(authService.smsLogin(reqVO));
|
|
|
}
|
|
|
|
|
|
@PostMapping("/send-sms-code")
|
|
|
- @PermitAll
|
|
|
+ @PermitAll //无需登录,允许所有用户访问
|
|
|
@Operation(summary = "发送手机验证码")
|
|
|
public CommonResult<Boolean> sendLoginSmsCode(@RequestBody @Valid AuthSmsSendReqVO reqVO) {
|
|
|
authService.sendSmsCode(reqVO);
|