1
0
mirror of synced 2025-12-22 09:58:07 +08:00

优化门店查询列表的接口, for issue #17

This commit is contained in:
Binary Wang
2016-09-27 23:51:29 +08:00
parent c7a04d5fe4
commit 94b42ee9ae
3 changed files with 23 additions and 30 deletions

View File

@@ -18,6 +18,7 @@ import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.api.ApiTestModule;
import me.chanjar.weixin.mp.bean.store.WxMpStoreBaseInfo;
import me.chanjar.weixin.mp.bean.store.WxMpStoreInfo;
import me.chanjar.weixin.mp.bean.store.WxMpStoreListResult;
/**
* @author 王彬 (Binary Wang)
@@ -37,17 +38,16 @@ public class WxMpStoreServiceImplTest {
this.wxMpService.getStoreService()
.add(WxMpStoreBaseInfo.builder().businessName("haha").branchName("abc")
.province("aaa").district("aaa").telephone("122").address("abc")
.categories(new String[] { "美食,江浙菜" })
.categories(new String[] { "美食,江浙菜" })
.longitude(new BigDecimal("115.32375"))
.latitude(new BigDecimal("25.097486")).city("aaa").offsetType(1)
.build());
}
public void testList() throws WxErrorException {
List<WxMpStoreInfo> list = this.wxMpService.getStoreService().list(0, 10);
assertNotNull(list);
System.err.println(list.size());
System.err.println(list);
WxMpStoreListResult result = this.wxMpService.getStoreService().list(0, 10);
assertNotNull(result);
System.err.println(result);
}
public void testListAll() throws WxErrorException {