SpringBoot工程调用SDK包

本文以查询用户信息为例,详细记录了在SpringBoot工程中调用SDK包的步骤,包括在service类中实现SDK方法,在controller中调用service,以及在facade中定义接口供controller继承,最后还简要介绍了SDK包内函数的结构。
摘要由CSDN通过智能技术生成

以查询用户信息的接口为例,记录调用SDK包方法的过程。

1、service类

里面写调用SDK包内的具体哪个函数方法,是具体实现过程。

public class SOPMsspClient {
 
public ReturnResult<QueryUserListResult> queryTrustUser(String appId, String customerId, String name, String startTime, String endTime, String  userstate, String skip, String step)  throws MSSPClientException{
  
    MSSPOpenPlantformClient msspClient = new MSSPOpenPlantformClient(msspUrl);
    Map<String, String> conditions = new HashMap();
    conditions.put("CUSTOMER_ID",customerId);
    conditions.put("APP_ID",appId);
    conditions.put("NAME",name);
    conditions.put("START_TIME",startTime);
    conditions.put("END_TIME",endTime);
    conditions.put("USER_STATE",userstate);
    conditions.put("SKIP",skip);
    conditions.put("STEP",step);
    ReturnResult<QueryUserListResult>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值