@Test public void testModifyDomain() throws Exception { WxMaDomainAction domainAction = wxService.getSettingService().modifyDomain(WxMaDomainAction .builder() .action("get") .build()); System.out.println(domainAction); assertNotNull(domainAction); domainAction.setAction("set"); WxMaDomainAction result = wxService.getSettingService().modifyDomain(domainAction); System.out.println(result); }
@Override public WxMaDomainAction modifyDomain(WxMaDomainAction domainAction) throws WxErrorException { String responseContent = this.wxMaService.post(MODIFY_DOMAIN_URL, domainAction.toJson()); return WxMaDomainAction.fromJson(responseContent); }
WxMaSettingServiceImpl implements WxMaSettingService { @Override public WxMaDomainAction modifyDomain(WxMaDomainAction domainAction) throws WxErrorException { String responseContent = this.wxMaService.post(MODIFY_DOMAIN_URL, domainAction.toJson()); return WxMaDomainAction.fromJson(responseContent); } }
WxMaSettingServiceImpl implements WxMaSettingService { @Override public WxMaDomainAction modifyDomain(WxMaDomainAction domainAction) throws WxErrorException { String responseContent = this.wxMaService.post(MODIFY_DOMAIN_URL, domainAction.toJson()); return WxMaDomainAction.fromJson(responseContent); } WxMaSettingServiceImpl(WxMaService wxMaService); }
WxMaSettingServiceImpl implements WxMaSettingService { @Override public WxMaDomainAction modifyDomain(WxMaDomainAction domainAction) throws WxErrorException { String responseContent = this.wxMaService.post(MODIFY_DOMAIN_URL, domainAction.toJson()); return WxMaDomainAction.fromJson(responseContent); } WxMaSettingServiceImpl(WxMaService wxMaService); @Override WxMaDomainAction modifyDomain(WxMaDomainAction domainAction); @Override WxMaDomainAction setWebViewDomain(WxMaDomainAction domainAction); @Override void bindTester(String wechatId); @Override void unbindTester(String wechatId); }
WxMaSettingServiceImpl implements WxMaSettingService { @Override public WxMaDomainAction modifyDomain(WxMaDomainAction domainAction) throws WxErrorException { String responseContent = this.wxMaService.post(MODIFY_DOMAIN_URL, domainAction.toJson()); return WxMaDomainAction.fromJson(responseContent); } WxMaSettingServiceImpl(WxMaService wxMaService); @Override WxMaDomainAction modifyDomain(WxMaDomainAction domainAction); @Override WxMaDomainAction setWebViewDomain(WxMaDomainAction domainAction); @Override void bindTester(String wechatId); @Override void unbindTester(String wechatId);  }