package com.brframework.webapppatch.json;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 发布版本
 * @author xu
 * @date 2019/11/14 17:05
 */
@Data
@ApiModel
public class AppPatchReleaseVersionParam {

    @ApiModelProperty(value = "更新密钥",required = true, example = "fkjdsklfjsldffdkfj9834jdfd")
    private String secretKey;
    @ApiModelProperty(value = "最新版本号",required = true, example = "30")
    private Integer version;
    @ApiModelProperty(value = "新版本信息",required = true, example = "更新了挺多的了")
    private String versionMessage;
    @ApiModelProperty(value = "新版本下载地址",required = true, example = "http://wwww.google.com")
    private String versionUrl;
    @ApiModelProperty(value = "补丁包下载地址",required = true, example = "http://wwww.google.com")
    private String patchUrl;
    @ApiModelProperty(value = "bundle文件下载地址",required = true, example = "http://wwww.google.com")
    private String bundleUrl;
    @ApiModelProperty(value = "更新类型 1.重启后生效  2.立即生效", example = "1", allowableValues = "1,2")
    private Integer updateType;
    @ApiModelProperty(value = "更新状态 1.部署成功  2.灰度测试  3.发布 4.失败", example = "1", allowableValues = "1,2,3,4")
    private Integer updateStatus;


}
