fix(test): 基线修复——stub 补平台 SDK 新增的通道绑定方法 + 自带 spring-boot-starter-data-redis(0928 快照 WeChatAuthAutoConfiguration 签名引用 StringRedisTemplate,接入前提为应用自带 data-redis)
This commit is contained in:
@@ -50,6 +50,13 @@
|
||||
<groupId>com.yunhai.platform</groupId>
|
||||
<artifactId>yh-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<!-- 平台 auth starter(0928 后快照)的 WeChatAuthAutoConfiguration 签名引用 StringRedisTemplate,
|
||||
data-redis 为 optional,接入前提=应用自带(见该 starter pom 注释);缺失时 bean 签名解析直接
|
||||
TypeNotPresentException,应用起不来 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
<!-- CAS 客户端(UserHome/Cms/svc-hall 同款显式声明) -->
|
||||
<dependency>
|
||||
<groupId>org.jasig.cas.client</groupId>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.yunhai.flowcenter.stub;
|
||||
|
||||
import com.yunhai.platform.openapi.base.OpenApiUserClient;
|
||||
import com.yunhai.platform.openapi.base.model.ChannelBindByPhoneRequest;
|
||||
import com.yunhai.platform.openapi.base.model.ChannelBindRequest;
|
||||
import com.yunhai.platform.openapi.base.model.SysUserGroupDeleteItem;
|
||||
import com.yunhai.platform.openapi.base.model.SysUserGroupStateRequest;
|
||||
import com.yunhai.platform.openapi.base.model.SysUserMoveRequest;
|
||||
@@ -137,4 +139,24 @@ public class StubUserClient implements OpenApiUserClient {
|
||||
public void batchChangeUserStatus(List<Integer> userIds, boolean disabled) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoaUser getChannelBoundUser(String channel, String openId) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoaUser bindChannel(ChannelBindRequest request) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoaUser bindChannelByPhone(ChannelBindByPhoneRequest request) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unbindChannel(String channel, String openId) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user