
package cn.orionsec.ops.entity.request.data;

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

import java.util.List;

@Data
@ApiModel(value = "数据清理请求")
@SuppressWarnings("ALL")
public class DataClearRequest {

    @ApiModelProperty(value = "保留天数")
    private Integer reserveDay;

    @ApiModelProperty(value = "保留条数")
    private Integer reserveTotal;

    /**
     * @see cn.orionsec.ops.constant.DataClearType
     */
    @ApiModelProperty(value = "清理类型")
    private Integer clearType;

    /**
     * @see cn.orionsec.ops.constant.DataClearRange
     */
    @ApiModelProperty(value = "清理区间")
    private Integer range;

    @ApiModelProperty(value = "清理的引用id")
    private List<Long> relIdList;

    @ApiModelProperty(value = "引用id")
    private Long relId;

    @ApiModelProperty(value = "机器id")
    private Long machineId;

    @ApiModelProperty(value = "环境id")
    private Long profileId;

    /**
     * @see cn.orionsec.ops.constant.Const#ENABLE
     * @see cn.orionsec.ops.constant.Const#DISABLE
     */
    @ApiModelProperty(value = "只清理我创建的")
    private Integer iCreated;

    /**
     * @see cn.orionsec.ops.constant.Const#ENABLE
     * @see cn.orionsec.ops.constant.Const#DISABLE
     */
    @ApiModelProperty(value = "只清理我审核的")
    private Integer iAudited;

    /**
     * @see cn.orionsec.ops.constant.Const#ENABLE
     * @see cn.orionsec.ops.constant.Const#DISABLE
     */
    @ApiModelProperty(value = "只清理我执行的")
    private Integer iExecute;

    /**
     * @see cn.orionsec.ops.constant.Const#ENABLE
     * @see cn.orionsec.ops.constant.Const#DISABLE
     */
    @ApiModelProperty(value = "只清理未读的")
    private Integer onlyRead;

}
