以查询用户信息的接口为例,记录调用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>