docs: 优化注释

This commit is contained in:
xiongxiaoyang 2022-07-05 23:58:09 +08:00
parent 0890a3295d
commit eea6682870
4 changed files with 9 additions and 5 deletions

View File

@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
* 平台后台管理系统 认证策略 * 平台后台管理系统 认证授权策略
* *
* @author xiongxiaoyang * @author xiongxiaoyang
* @date 2022/5/18 * @date 2022/5/18
@ -18,4 +18,5 @@ public class AdminAuthStrategy implements AuthStrategy {
public void auth(String token, String requestUri) throws BusinessException { public void auth(String token, String requestUri) throws BusinessException {
// TODO 平台后台 token 校验 // TODO 平台后台 token 校验
} }
} }

View File

@ -18,7 +18,7 @@ import org.springframework.util.StringUtils;
public interface AuthStrategy { public interface AuthStrategy {
/** /**
* 请求用户认证 * 用户认证授权
* *
* @param token 登录 token * @param token 登录 token
* @param requestUri 请求的 URI * @param requestUri 请求的 URI
@ -27,7 +27,7 @@ public interface AuthStrategy {
void auth(String token, String requestUri) throws BusinessException; void auth(String token, String requestUri) throws BusinessException;
/** /**
* 前台多系统单点登录统一账号认证门户系统作家系统以及后面会扩展的漫画系统和视频系统等 * 前台多系统单点登录统一账号认证授权门户系统作家系统以及后面会扩展的漫画系统和视频系统等
* *
* @param jwtUtils jwt 工具 * @param jwtUtils jwt 工具
* @param userInfoCacheManager 用户缓存管理对象 * @param userInfoCacheManager 用户缓存管理对象
@ -55,4 +55,5 @@ public interface AuthStrategy {
// 返回 userId // 返回 userId
return userId; return userId;
} }
} }

View File

@ -13,7 +13,7 @@ import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
* 作家后台管理系统 认证策略 * 作家后台管理系统 认证授权策略
* *
* @author xiongxiaoyang * @author xiongxiaoyang
* @date 2022/5/18 * @date 2022/5/18
@ -54,4 +54,5 @@ public class AuthorAuthStrategy implements AuthStrategy {
// 设置作家ID到当前线程 // 设置作家ID到当前线程
UserHolder.setAuthorId(authorInfo.getId()); UserHolder.setAuthorId(authorInfo.getId());
} }
} }

View File

@ -7,7 +7,7 @@ import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
* 前台门户系统 认证策略 * 前台门户系统 认证授权策略
* *
* @author xiongxiaoyang * @author xiongxiaoyang
* @date 2022/5/18 * @date 2022/5/18
@ -25,4 +25,5 @@ public class FrontAuthStrategy implements AuthStrategy {
// 统一账号认证 // 统一账号认证
authSSO(jwtUtils, userInfoCacheManager, token); authSSO(jwtUtils, userInfoCacheManager, token);
} }
} }