@Test(dependsOnMethods = "testCreate") public void testUpdate() throws Exception { WxCpUser user = new WxCpUser(); user.setUserId(userId); user.setName("Some Woman"); user.addExtAttr("爱好", "table2"); this.wxCpService.getUserService().update(user); }
@Override public void update(WxCpUser user) throws WxErrorException { String url = "https: this.mainService.post(url, user.toJson()); }
WxCpUserServiceImpl implements WxCpUserService { @Override public void update(WxCpUser user) throws WxErrorException { String url = "https: this.mainService.post(url, user.toJson()); } }
WxCpUserServiceImpl implements WxCpUserService { @Override public void update(WxCpUser user) throws WxErrorException { String url = "https: this.mainService.post(url, user.toJson()); } WxCpUserServiceImpl(WxCpService mainService); }
WxCpUserServiceImpl implements WxCpUserService { @Override public void update(WxCpUser user) throws WxErrorException { String url = "https: this.mainService.post(url, user.toJson()); } WxCpUserServiceImpl(WxCpService mainService); @Override void authenticate(String userId); @Override void create(WxCpUser user); @Override void update(WxCpUser user); @Override void delete(String... userIds); @Override WxCpUser getById(String userid); @Override List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Integer status); @Override List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status); @Override WxCpInviteResult invite(List<String> userIds, List<String> partyIds, List<String> tagIds); @Override Map<String, String> userId2Openid(String userId, Integer agentId); @Override String openid2UserId(String openid); @Override WxCpUserExternalContactInfo getExternalContact(String userId); }
WxCpUserServiceImpl implements WxCpUserService { @Override public void update(WxCpUser user) throws WxErrorException { String url = "https: this.mainService.post(url, user.toJson()); } WxCpUserServiceImpl(WxCpService mainService); @Override void authenticate(String userId); @Override void create(WxCpUser user); @Override void update(WxCpUser user); @Override void delete(String... userIds); @Override WxCpUser getById(String userid); @Override List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Integer status); @Override List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status); @Override WxCpInviteResult invite(List<String> userIds, List<String> partyIds, List<String> tagIds); @Override Map<String, String> userId2Openid(String userId, Integer agentId); @Override String openid2UserId(String openid); @Override WxCpUserExternalContactInfo getExternalContact(String userId);  }