mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
docs: 优化注释
This commit is contained in:
parent
0890a3295d
commit
eea6682870
@ -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 校验
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user