@@ -231,7 +231,7 @@ public interface WxOpenMaService extends WxMaService { | |||||
* | * | ||||
* @return | * @return | ||||
*/ | */ | ||||
public WxOpenResult getWebViewDomainInfo() throws WxErrorException; | |||||
public WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException; | |||||
/** | /** | ||||
* 设置小程序的业务域名 | * 设置小程序的业务域名 | ||||
@@ -249,7 +249,7 @@ public interface WxOpenMaService extends WxMaService { | |||||
* @param domainList | * @param domainList | ||||
* @return | * @return | ||||
*/ | */ | ||||
WxOpenResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException; | |||||
WxOpenMaWebDomainResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException; | |||||
/** | /** | ||||
* 获取小程序的信息 | * 获取小程序的信息 | ||||
@@ -110,7 +110,7 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ | |||||
* @return | * @return | ||||
*/ | */ | ||||
@Override | @Override | ||||
public WxOpenResult getWebViewDomainInfo() throws WxErrorException { | |||||
public WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException { | |||||
return setWebViewDomainInfo("get", null); | return setWebViewDomainInfo("get", null); | ||||
} | } | ||||
@@ -141,9 +141,9 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ | |||||
* @return | * @return | ||||
*/ | */ | ||||
@Override | @Override | ||||
public WxOpenResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException { | |||||
public WxOpenMaWebDomainResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException { | |||||
String response = this.setWebViewDomain(action, domainList); | String response = this.setWebViewDomain(action, domainList); | ||||
return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); | |||||
return WxMaGsonBuilder.create().fromJson(response, WxOpenMaWebDomainResult.class); | |||||
} | } | ||||
@@ -0,0 +1,18 @@ | |||||
package me.chanjar.weixin.open.bean.result; | |||||
import com.google.gson.annotations.SerializedName; | |||||
import lombok.Data; | |||||
import lombok.EqualsAndHashCode; | |||||
import java.util.List; | |||||
@Data | |||||
@EqualsAndHashCode(callSuper = true) | |||||
public class WxOpenMaWebDomainResult extends WxOpenResult { | |||||
private static final long serialVersionUID = -2182687859448940313L; | |||||
@SerializedName("webviewdomain") | |||||
List<String> webviewdomainList; | |||||
} |