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

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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author nfq
 * @date 2020/8/28 10:29
 */
@Data
@ApiModel(description = "系统合规策略下发对象")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SystemComplianceSO {

    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "策略名称")
    private String strategyName;
    @ApiModelProperty(value = "sd卡变更 0：未选 1：已选")
    private Integer sdChange;
    @ApiModelProperty(value = "rooted 0：未选 1：已选")
    private Integer rooted;
    @ApiModelProperty(value = "失联 0：未选 1：已选")
    private Integer miss;
    @ApiModelProperty(value = "电量过低 0：未选 1：已选")
    private Integer lowPower;
    @ApiModelProperty(value = "失联时间(1-365天)")
    private Integer missDay;
    @ApiModelProperty(value = "低电量违规值")
    private String lowBattery;
    @ApiModelProperty(value = "禁用SD卡（0：否 1：是）")
    private Integer sdDisable;
    @ApiModelProperty(value = "禁用相机（0：否 1：是）")
    private Integer photoDisable;
    @ApiModelProperty(value = "禁用录音（0：否 1：是）")
    private Integer recordingDisable;
    @ApiModelProperty(value = "恢复出厂设置（0：否 1：是）")
    private Integer factoryResetDisable;
    @ApiModelProperty(value = "禁用网络（0：否 1：是）")
    private Integer networkDisable;
    @ApiModelProperty(value = "锁定设备（0：否 1：是）")
    private Integer lockEquipment;
    @ApiModelProperty(value = "禁用应用（0：否 1：是）")
    private Integer appDisable;
    @ApiModelProperty(value = "锁屏密码")
    private String lockPassword;
    @ApiModelProperty(value = "禁用应用包名")
    private String appDisablePackage;
    @ApiModelProperty(value = "违规告警 （0：否 1：是）")
    private Integer isWarning;
    @JsonSerialize(using = DateConvertUtil.class)
    @ApiModelProperty(value = "下发时间")
    private Date sendTime;
    @JsonSerialize(using = DateConvertUtil.class)
    @ApiModelProperty(value = "操作时间")
    private Date operateTime;
    @ApiModelProperty(value = "策略全局类型（1：公司全局 2：部门全局 3：个人）")
    private Integer globalType;
}
