diff --git a/src/main/java/io/github/xxyopen/novel/core/auth/AdminAuthStrategy.java b/src/main/java/io/github/xxyopen/novel/core/auth/AdminAuthStrategy.java index 88759cb..a68dc70 100644 --- a/src/main/java/io/github/xxyopen/novel/core/auth/AdminAuthStrategy.java +++ b/src/main/java/io/github/xxyopen/novel/core/auth/AdminAuthStrategy.java @@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; /** - * 平台后台管理系统 认证策略 + * 平台后台管理系统 认证授权策略 * * @author xiongxiaoyang * @date 2022/5/18 @@ -18,4 +18,5 @@ public class AdminAuthStrategy implements AuthStrategy { public void auth(String token, String requestUri) throws BusinessException { // TODO 平台后台 token 校验 } + } \ No newline at end of file diff --git a/src/main/java/io/github/xxyopen/novel/core/auth/AuthStrategy.java b/src/main/java/io/github/xxyopen/novel/core/auth/AuthStrategy.java index 99fbe12..758b1b0 100644 --- a/src/main/java/io/github/xxyopen/novel/core/auth/AuthStrategy.java +++ b/src/main/java/io/github/xxyopen/novel/core/auth/AuthStrategy.java @@ -18,7 +18,7 @@ import org.springframework.util.StringUtils; public interface AuthStrategy { /** - * 请求用户认证 + * 用户认证授权 * * @param token 登录 token * @param requestUri 请求的 URI @@ -27,7 +27,7 @@ public interface AuthStrategy { void auth(String token, String requestUri) throws BusinessException; /** - * 前台多系统单点登录统一账号认证(门户系统、作家系统以及后面会扩展的漫画系统和视频系统等) + * 前台多系统单点登录统一账号认证授权(门户系统、作家系统以及后面会扩展的漫画系统和视频系统等) * * @param jwtUtils jwt 工具 * @param userInfoCacheManager 用户缓存管理对象 @@ -55,4 +55,5 @@ public interface AuthStrategy { // 返回 userId return userId; } + } diff --git a/src/main/java/io/github/xxyopen/novel/core/auth/AuthorAuthStrategy.java b/src/main/java/io/github/xxyopen/novel/core/auth/AuthorAuthStrategy.java index 71e5ff1..f3e0827 100644 --- a/src/main/java/io/github/xxyopen/novel/core/auth/AuthorAuthStrategy.java +++ b/src/main/java/io/github/xxyopen/novel/core/auth/AuthorAuthStrategy.java @@ -13,7 +13,7 @@ import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; /** - * 作家后台管理系统 认证策略 + * 作家后台管理系统 认证授权策略 * * @author xiongxiaoyang * @date 2022/5/18 @@ -54,4 +54,5 @@ public class AuthorAuthStrategy implements AuthStrategy { // 设置作家ID到当前线程 UserHolder.setAuthorId(authorInfo.getId()); } + } \ No newline at end of file diff --git a/src/main/java/io/github/xxyopen/novel/core/auth/FrontAuthStrategy.java b/src/main/java/io/github/xxyopen/novel/core/auth/FrontAuthStrategy.java index 4e1b807..214a747 100644 --- a/src/main/java/io/github/xxyopen/novel/core/auth/FrontAuthStrategy.java +++ b/src/main/java/io/github/xxyopen/novel/core/auth/FrontAuthStrategy.java @@ -7,7 +7,7 @@ import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; /** - * 前台门户系统 认证策略 + * 前台门户系统 认证授权策略 * * @author xiongxiaoyang * @date 2022/5/18 @@ -25,4 +25,5 @@ public class FrontAuthStrategy implements AuthStrategy { // 统一账号认证 authSSO(jwtUtils, userInfoCacheManager, token); } + } \ No newline at end of file