package com.brframework.webapppatch.json;

import com.brframework.commoncms.annatotion.column.SelectColumn;
import com.brframework.commondb.annotation.param.ParamQuery;
import com.brframework.webapppatch.service.PatchBranchService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xu
 * @date 2019/11/14 18:41
 */
@ApiModel
@Data
public class AppPatchVersionListParam {

    @ApiModelProperty(value = "操作系统", required = true, example = "Android")
    @SelectColumn(options = {"ANDROID,ANDROID", "IOS,IOS"})
    @ParamQuery
    private String os;

    @ApiModelProperty(value = "分支", required = true, example = "Android")
    @SelectColumn(optionsMappingContext = PatchBranchService.SELECT_APP_PATCH_BRANCH)
    @ParamQuery
    private String branch;

    @ApiModelProperty(value = "更新状态", example = "1", allowableValues = "1,2,3,4")
    @SelectColumn(options = {"1,部署成功", "2,灰度测试", "3,发布", "4,失败"})
    @ParamQuery
    private Integer updateStatus;

}
