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

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 应用商店编辑应用
 *
 * @author nfq
 * @since 2022-11-22 10:47:23
 */
@Data
@ApiModel(value = "应用商店编辑应用对象")
public class MdmAppStoreUpdateQO {

    @NotNull(message = "应用ID不能为空")
    @ApiModelProperty(value = "应用ID")
    private Integer id;

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

    @ApiModelProperty(value = "图标地址")
    private String iconUrl;

    @NotNull(message = "应用分类不能为空")
    @ApiModelProperty(value = "应用分类ID")
    private Integer appTypeId;

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

    @NotNull(message = "发布方式不能为空")
    @ApiModelProperty(value = "发布方式（0：仅上传 1：全局 2：部门 3:设备 4：用户）")
    private Integer globalType;

    @ApiModelProperty(value = "候选ID集合（部门ID集合或设备ID集合）")
    private List<Integer> candidateIdList;

}