#1172 实现微信开放平台第三方小程序分阶段发布功能以及其他相关接口

This commit is contained in:
S
2019-08-23 09:34:35 +08:00
committed by Binary Wang
parent 3e948ec01b
commit 8f1c7420a5
4 changed files with 272 additions and 2 deletions

View File

@@ -0,0 +1,54 @@
package me.chanjar.weixin.open.bean.result;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 微信开放平台小程序当前分阶段发布详情
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxOpenMaGrayReleasePlanResult extends WxOpenResult {
private static final long serialVersionUID = 8417849861393170728L;
@SerializedName("gray_release_plan")
private GrayReleasePlanBean grayReleasePlan;
@Data
public static class GrayReleasePlanBean {
/**
* 0:初始状态 1:执行中 2:暂停中 3:执行完毕 4:被删除
*/
@SerializedName("status")
private Integer status;
/**
* 创建时间
*/
@SerializedName("create_timestamp")
private Long createTimestamp;
/**
* 灰度百分比
*/
@SerializedName("gray_percentage")
private Integer grayPercentage;
}
@Override
public String toString() {
return WxOpenGsonBuilder.create().toJson(this);
}
}

View File

@@ -0,0 +1,53 @@
package me.chanjar.weixin.open.bean.result;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
import java.util.List;
/**
* 查询当前设置的最低基础库版本及各版本用户占比
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxOpenMaWeappSupportVersionResult extends WxOpenResult {
private static final long serialVersionUID = -2955725249930665377L;
@SerializedName("now_version")
String nowVersion;
@SerializedName("uv_info")
UvInfoBean uvInfo;
@Data
public static class UvInfoBean {
@SerializedName("items")
List<VersionPercentageBean> items;
}
@Data
public static class VersionPercentageBean {
@SerializedName("percentage")
private Integer percentage;
@SerializedName("version")
private String version;
}
@Override
public String toString() {
return WxOpenGsonBuilder.create().toJson(this);
}
}