优化门店查询列表的接口, for issue #17
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user