mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
#563 小程序增加修改服务器地址、成员管理 API
* 微信开放平台:1. WxOpenInRedisConfigStorage 支持 JedisPool/JedisSentinelPool 等 Pool<Jedis> 的子类;2. WxOpenInRedisConfigStorage 增加 keyPrefix 以支持可配置的前缀; * 微信开放平台:增加小程序代码模板库管理 * 小程序:增加代码管理相关 API * 小程序:增加修改服务器地址、成员管理 API
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
package cn.binarywang.wx.miniapp.bean;
|
||||
|
||||
import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 域名相关操作
|
||||
*
|
||||
* @author <a href="https://github.com/charmingoh">Charming</a>
|
||||
* @since 2018-04-27 15:45
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public class WxMaDomainAction implements Serializable {
|
||||
private static final long serialVersionUID = -2898601966852935708L;
|
||||
/**
|
||||
* add添加, delete删除, set覆盖, get获取。当参数是get时不需要填四个域名字段
|
||||
*/
|
||||
private String action;
|
||||
/**
|
||||
* request合法域名,当action参数是get时不需要此字段。
|
||||
*/
|
||||
@SerializedName("requestdomain")
|
||||
private List<String> requestDomain;
|
||||
/**
|
||||
* socket合法域名,当action参数是get时不需要此字段。
|
||||
*/
|
||||
@SerializedName("wsrequestdomain")
|
||||
private List<String> wsRequestDomain;
|
||||
/**
|
||||
* uploadFile合法域名,当action参数是get时不需要此字段。
|
||||
*/
|
||||
@SerializedName("uploaddomain")
|
||||
private List<String> uploadDomain;
|
||||
/**
|
||||
* downloadFile合法域名,当action参数是get时不需要此字段。
|
||||
*/
|
||||
@SerializedName("downloaddomain")
|
||||
private List<String> downloadDomain;
|
||||
/**
|
||||
* 小程序业务域名,当action参数是get时不需要此字段。
|
||||
*/
|
||||
@SerializedName("webviewdomain")
|
||||
private List<String> webViewDomain;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
public static WxMaDomainAction fromJson(String json) {
|
||||
return WxMaGsonBuilder.create().fromJson(json, WxMaDomainAction.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user