Java调用sdk,接口引用实体不存在,请问是引用包的问题吗?
1.引用包
<dependency>
<groupId>com.youzan.cloud</groupId>
<artifactId>open-sdk-core</artifactId>
<version>1.0.28-RELEASE</version>
</dependency>
<dependency>
<groupId>com.youzan.cloud</groupId>
<artifactId>open-sdk-gen</artifactId>
<version>1.0.22.80701202109281055-RELEASE</version>
</dependency>
2.接口youzan.salesman.order.query.listBounsOrder.1.0.0Java 调用的实体,都不存在。YouzanSalesmanOrderQueryListbounsorder ,YouzanSalesmanOrderQueryListbounsorderParams,YouzanSalesmanOrderQueryListbounsorderResult实体缺失, 如下:
//YouZanClient 建议全局唯一,使用 spring 容器管理YouZanClient yzClient = new DefaultYZClient();Token token = new Token("YOUR_TOKEN");YouzanSalesmanOrderQueryListbounsorder youzanSalesmanOrderQueryListbounsorder = new YouzanSalesmanOrderQueryListbounsorder();//创建参数对象,并设置参数YouzanSalesmanOrderQueryListbounsorderParams youzanSalesmanOrderQueryListbounsorderParams = new YouzanSalesmanOrderQueryListbounsorderParams(); youzanSalesmanOrderQueryListbounsorderParams.setStartTime(L); youzanSalesmanOrderQueryListbounsorderParams.setFromGroupId(L); youzanSalesmanOrderQueryListbounsorderParams.setMobile(""); youzanSalesmanOrderQueryListbounsorderParams.setEndTime(L); youzanSalesmanOrderQueryListbounsorderParams.setFromFansId(L); youzanSalesmanOrderQueryListbounsorderParams.setPageNo(1); youzanSalesmanOrderQueryListbounsorderParams.setFromMobile("17678393964"); youzanSalesmanOrderQueryListbounsorderParams.setTid("E20230518153254098302002"); youzanSalesmanOrderQueryListbounsorderParams.setFansId(L); youzanSalesmanOrderQueryListbounsorderParams.setPageSize(20);youzanSalesmanOrderQueryListbounsorder.setAPIParams(youzanSalesmanOrderQueryListbounsorderParams);YouzanSalesmanOrderQueryListbounsorderResult result = yzClient.invoke(youzanSalesmanOrderQueryListbounsorder, token, YouzanSalesmanOrderQueryListbounsorderResult.class);
3、接口:youzan.salesman.account.list.1.0.0同样问题,入参,出参实体缺失。//YouZanClient 建议全局唯一,使用 spring 容器管理YouZanClient yzClient = new DefaultYZClient();Token token = new Token("YOUR_TOKEN");YouzanSalesmanAccountList youzanSalesmanAccountList = new YouzanSalesmanAccountList();//创建参数对象,并设置参数YouzanSalesmanAccountListParams youzanSalesmanAccountListParams = new YouzanSalesmanAccountListParams(); youzanSalesmanAccountListParams.setNodeKdtId(58816911L); youzanSalesmanAccountListParams.setStartTime(2023-01-01 00:00:00); youzanSalesmanAccountListParams.setEndTime(2024-01-31 00:00:00); youzanSalesmanAccountListParams.setPageNo(1); youzanSalesmanAccountListParams.setPageSize(20);youzanSalesmanAccountList.setAPIParams(youzanSalesmanAccountListParams);YouzanSalesmanAccountListResult result = yzClient.invoke(youzanSalesmanAccountList, token, YouzanSalesmanAccountListResult.class);
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|