mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-13 21:30:25 +00:00
ref 升级脚手架依赖
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>bootx-platform-starter</artifactId>
|
||||
<version>3.0.0.beta5</version>
|
||||
<version>3.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>starter-auth</artifactId>
|
||||
|
@@ -5,6 +5,7 @@ import cn.bootx.platform.starter.auth.entity.LoginAuthContext;
|
||||
import cn.hutool.extra.spring.SpringUtil;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -19,11 +20,12 @@ public interface AbstractAuthentication {
|
||||
* 获取终端编码
|
||||
*/
|
||||
String getLoginType();
|
||||
|
||||
/**
|
||||
* 获取用户状态检查接口的实现类
|
||||
*/
|
||||
default UserInfoStatusCheck getUserInfoStatusCheck() {
|
||||
return SpringUtil.getBean(UserInfoStatusCheck.class);
|
||||
default List<UserInfoStatusCheck> getUserInfoStatusCheck() {
|
||||
return SpringUtil.getBeansOfType(UserInfoStatusCheck.class).values().stream().toList();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,7 +64,9 @@ public interface AbstractAuthentication {
|
||||
// 添加用户信息到上下文中
|
||||
context.setUserDetail(authInfoResult.getUserDetail());
|
||||
// 检查用户信息和状态
|
||||
this.getUserInfoStatusCheck().check(authInfoResult, context);
|
||||
for (var userInfoStatusCheck : this.getUserInfoStatusCheck()) {
|
||||
userInfoStatusCheck.check(authInfoResult, context);
|
||||
}
|
||||
// 认证后处理
|
||||
this.authenticationAfter(authInfoResult, context);
|
||||
return authInfoResult;
|
||||
|
@@ -11,7 +11,7 @@ import cn.bootx.platform.starter.auth.entity.LoginAuthContext;
|
||||
public interface UserInfoStatusCheck {
|
||||
|
||||
/**
|
||||
*
|
||||
* 检查用户状态
|
||||
* @param authInfoResult 认证返回结果
|
||||
* @param context 登录认证上下文
|
||||
*/
|
||||
|
Reference in New Issue
Block a user