package com.skr.mdm.bean.qo.system;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 应用商店添加应用
 *
 * @author nfq
 * @since 2022-11-22 10:47:23
 */
@Data
@ApiModel(value = "客户端升级添加/编辑QO")
public class ClientUpgradeAddUpdateQO {

    private Integer id;

    @NotBlank(message = "应用名称不能为空")
    @ApiModelProperty(value = "应用名称")
    private String appName;

    @NotBlank(message = "包名不能为空")
    @ApiModelProperty(value = "包名")
    private String packageName;

    @NotBlank(message = "版本名称不能为空")
    @ApiModelProperty(value = "版本名称")
    private String versionName;

    @NotNull(message = "版本号不能为空")
    @ApiModelProperty(value = "版本号")
    private Integer versionCode;

    @NotBlank(message = "文件地址不能为空")
    @ApiModelProperty(value = "文件地址")
    private String fileUrl;

    @NotBlank(message = "文件大小不能为空")
    @ApiModelProperty(value = "文件大小")
    private String fileSize;

    @NotBlank(message = "品牌类型不能为空")
    @ApiModelProperty(value = "品牌类型")
    private String brand;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "全局类型不能为空")
    @ApiModelProperty(value = "全局类型（1：全局 2：部门 3：用户）")
    private Integer globalType;

}

