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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.skr.mdm.bean.util.DateConvertUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author nfq
 * @date 2022-10-24 18:16
 */
@Data
@ApiModel(value = "应用策略下发对象")
public class AppStrategySO {

    private Integer id;

    @ApiModelProperty(value = "策略名称")
    private String strategyName;

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

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

    @ApiModelProperty(value = "安装来源")
    private AppStrategyInfoSO appStrategyInstallSourceSO;

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

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

    @ApiModelProperty(value = "应用使用权限")
    private AppStrategyUsePermissionSO appStrategyUsePermissionSO;

    @JsonSerialize(using = DateConvertUtil.class)
    @ApiModelProperty(value = "下发时间")
    private Date sendTime;

    @JsonSerialize(using = DateConvertUtil.class)
    @ApiModelProperty(value = "操作时间")
    private Date operateTime;

    @ApiModelProperty(value = "策略全局类型（1：公司全局 2：部门全局 3：设备 3：用户")
    private Integer globalType;

}