@Test public void testRemark() { Users.defaultUsers().remark(TestConfiguration.getInstance().testUser(), "borball"); User user = Users.defaultUsers().get(TestConfiguration.getInstance().testUser()); Assert.assertEquals("borball", user.getRemark()); }
public void remark(String openId, String remark) { String url = WxEndpoint.get("url.user.remark"); String json = String.format("{\"openid\":\"%s\",\"remark\":\"%s\"}", openId, remark); logger.debug("remark user: {}", json); wxClient.post(url, json); }
Users { public void remark(String openId, String remark) { String url = WxEndpoint.get("url.user.remark"); String json = String.format("{\"openid\":\"%s\",\"remark\":\"%s\"}", openId, remark); logger.debug("remark user: {}", json); wxClient.post(url, json); } }
Users { public void remark(String openId, String remark) { String url = WxEndpoint.get("url.user.remark"); String json = String.format("{\"openid\":\"%s\",\"remark\":\"%s\"}", openId, remark); logger.debug("remark user: {}", json); wxClient.post(url, json); }  }
Users { public void remark(String openId, String remark) { String url = WxEndpoint.get("url.user.remark"); String json = String.format("{\"openid\":\"%s\",\"remark\":\"%s\"}", openId, remark); logger.debug("remark user: {}", json); wxClient.post(url, json); }  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 void remark(String openId, String remark) { String url = WxEndpoint.get("url.user.remark"); String json = String.format("{\"openid\":\"%s\",\"remark\":\"%s\"}", openId, remark); logger.debug("remark user: {}", json); wxClient.post(url, json); }  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);  }