@Test public void testGet() { ReadUser user = Users.defaultUsers().get(getTestUser()); Assert.assertNotNull(user); }
public ReadUser get(String uid) { String url = WxEndpoint.get("url.user.get"); String user = wxClient.get(String.format(url, uid)); logger.debug("get user: {}", user); return JsonMapper.nonEmptyMapper().fromJson(user, ReadUser.class); }
Users { public ReadUser get(String uid) { String url = WxEndpoint.get("url.user.get"); String user = wxClient.get(String.format(url, uid)); logger.debug("get user: {}", user); return JsonMapper.nonEmptyMapper().fromJson(user, ReadUser.class); } }
Users { public ReadUser get(String uid) { String url = WxEndpoint.get("url.user.get"); String user = wxClient.get(String.format(url, uid)); logger.debug("get user: {}", user); return JsonMapper.nonEmptyMapper().fromJson(user, ReadUser.class); }  }
Users { public ReadUser get(String uid) { String url = WxEndpoint.get("url.user.get"); String user = wxClient.get(String.format(url, uid)); logger.debug("get user: {}", user); return JsonMapper.nonEmptyMapper().fromJson(user, ReadUser.class); }  static Users defaultUsers(); static Users with(CorpSetting corpSetting); void setWxClient(WxClient wxClient); ReadUser get(String uid); void create(CreateUser user); void update(UpdateUser user); void delete(String uid); List<SimpleUser> simpleList(int department, boolean fetchChild, Set<UserStatus> statusSet); List<SimpleUser> simpleList(int department); List<ReadUser> list(int department, boolean fetchChild, Set<UserStatus> statusSet); List<ReadUser> list(); List<ReadUser> list(int department); void delete(List<String> users); @Deprecated Invitation invite(String uid); }
Users { public ReadUser get(String uid) { String url = WxEndpoint.get("url.user.get"); String user = wxClient.get(String.format(url, uid)); logger.debug("get user: {}", user); return JsonMapper.nonEmptyMapper().fromJson(user, ReadUser.class); }  static Users defaultUsers(); static Users with(CorpSetting corpSetting); void setWxClient(WxClient wxClient); ReadUser get(String uid); void create(CreateUser user); void update(UpdateUser user); void delete(String uid); List<SimpleUser> simpleList(int department, boolean fetchChild, Set<UserStatus> statusSet); List<SimpleUser> simpleList(int department); List<ReadUser> list(int department, boolean fetchChild, Set<UserStatus> statusSet); List<ReadUser> list(); List<ReadUser> list(int department); void delete(List<String> users); @Deprecated Invitation invite(String uid);  }