@Test public void testList() { UserPagination userPagination = Users.defaultUsers().list(); Assert.assertNotNull(userPagination); int count = userPagination.getCount(); int total = userPagination.getTotal(); List<String> users = userPagination.getUsers(); for(String openid: users) { User user = Users.defaultUsers().get(openid); System.out.println(JsonMapper.defaultMapper().toJson(user)); } String[] openIds = new String[users.size()]; List<User> list = Users.defaultUsers().batchGet(users.toArray(openIds)); for(User user: list) { System.out.println(JsonMapper.defaultMapper().toJson(user)); } String next = userPagination.getNextOpenId(); userPagination = Users.defaultUsers().list(next); Assert.assertNotNull(userPagination); }
public UserPagination list() { return list(null); }
Users { public UserPagination list() { return list(null); } }
Users { public UserPagination list() { return list(null); }  }
Users { public UserPagination list() { return list(null); }  static Users defaultUsers(); static Users with(AppSetting appSetting); void setWxClient(WxClient wxClient); User get(String openId); User get(String openId, String lang); UserPagination list(); List<User> batchGet(String... openIds); List<User> batchGet(List<Map<String, String>> openIds); UserPagination list(String nextOpenId); void remark(String openId, String remark); }
Users { public UserPagination list() { return list(null); }  static Users defaultUsers(); static Users with(AppSetting appSetting); void setWxClient(WxClient wxClient); User get(String openId); User get(String openId, String lang); UserPagination list(); List<User> batchGet(String... openIds); List<User> batchGet(List<Map<String, String>> openIds); UserPagination list(String nextOpenId); void remark(String openId, String remark);  }