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

import com.skr.mdm.bean.qo.BaseStrategyQO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * @author nfq
 * @date 2022-10-24 18:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "应用策略创建/编辑对象")
public class AppStrategyQO extends BaseStrategyQO {

    private Integer id;

    @ApiModelProperty(value = "策略名称")
    @NotBlank(message = "策略名称不能为空")
    private String strategyName;

    @ApiModelProperty(value = "应用安装黑白名单")
    private AppStrategyInfoQO appStrategyInstallQO;

    @ApiModelProperty(value = "应用运行黑白名单")
    private AppStrategyInfoQO appStrategyRunQO;

    @ApiModelProperty(value = "安装来源")
    private AppStrategyInfoQO appStrategyInstallSourceQO;

    @ApiModelProperty(value = "应用防卸载")
    private List<Integer> notUninstallAppIdList;

    @ApiModelProperty(value = "快捷应用")
    private List<Integer> shortcutsAppIdList;

    @ApiModelProperty(value = "应用使用权限")
    private AppStrategyUsePermissionQO appStrategyUsePermissionQO;

}
