Commit 6c807f55 by 刘鑫

FEAT: BEAN 接口连通性测试

1 parent a2b2176d
......@@ -77,7 +77,7 @@ public interface IBeanRemoteService {
/**
* 查询分部列表
* 查询分部详情
*
* @param accessToken ACCESS_TOKEN
* @param bsTagId 列表接口查到的bsId
......
......@@ -4,9 +4,7 @@ import com.dituhui.pea.common.BusinessException;
import com.dituhui.pea.order.common.RedisService;
import com.dituhui.pea.order.common.jackson.JsonUtil;
import com.dituhui.pea.order.feign.IBeanRemoteService;
import com.dituhui.pea.order.feign.bean.AccessToken;
import com.dituhui.pea.order.feign.bean.BeanR;
import com.dituhui.pea.order.feign.bean.Department;
import com.dituhui.pea.order.feign.bean.*;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
......@@ -37,10 +35,31 @@ public class BeanRemoteServiceImpl {
//TODO 仅用于联通测试
public void testAllDepartment() {
String accessToken = getAccessToken();
BeanR<List<Department>> listBeanR = beanRemoteService.allDepartment(accessToken);
log.info("[testAllDepartment]【/api/openapi/department/queryList】返回值-------------------->{}", JsonUtil.toJson(listBeanR));
final String accessToken = getAccessToken();
//1.1 查询BEAN部门详情
BeanR<Department> departmentBeanR = beanRemoteService.departmentDetail(accessToken, "1643063176107991042");
log.info("[查询BEAN部门详情]【/api/openapi/department/detail】返回值-------------------->{}", JsonUtil.toJson(departmentBeanR));
//1.2 查询BEAN维护的分部列表(大区-分部-分站&外围)
BeanR<List<BranchRes>> listBeanR1 = beanRemoteService.departmentBranchList(accessToken);
log.info("[查询BEAN维护的分部列表]【/api/openapi/department/queryBranchList】返回值-------------------->{}", JsonUtil.toJson(listBeanR1));
//1.3 查询BEAN用户列表
BeanR<List<BeanAccountInfo>> listBeanR2 = beanRemoteService.queryUserList(accessToken, "1341423191870971906");
log.info("[查询BEAN用户列表]【/api/openapi/user/queryList】返回值-------------------->{}", JsonUtil.toJson(listBeanR2));
final String centerUserId = "nAOnU3BB6ioWLdZf";
//1.4 查询BEAN账号详情
BeanR<BeanUserDetail> beanUserDetailBeanR = beanRemoteService.userDetail(accessToken, centerUserId);
log.info("[查询BEAN用户详情]【/api/openapi/user/queryDetail】返回值-------------------->{}", JsonUtil.toJson(beanUserDetailBeanR));
//1.6 获取部门全量列表数据
BeanR<List<Department>> listBeanR = beanRemoteService.allDepartment(accessToken);
log.info("[查询BEAN部门全量列表]【/api/openapi/department/queryList】返回值-------------------->{}", JsonUtil.toJson(listBeanR));
//1.8 查询分部列表
BeanR<BranchDetail> branchDetailBeanR = beanRemoteService.branchDetail(accessToken, "1341423191870971906");
log.info("[查询BEAN部门分部详情]【/api/openapi/department/getBranchDetail】返回值-------------------->{}", JsonUtil.toJson(branchDetailBeanR));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!