package org.dromara.inspection.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.inspection.domain.OpsInspectionPlan;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 运维-巡检-计划视图对象 ops_inspection_plan
 *
 * @author LionLi
 * @date 2025-09-19
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = OpsInspectionPlan.class)
public class OpsInspectionPlanVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 电站id
     */
    private Long projectId;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 计划名称
     */
    @ExcelProperty(value = "计划名称")
    private String planName;

    /**
     * 计划类型，1每日巡检2每周巡检3每月巡检4每季度巡检
     */
    @ExcelProperty(value = "计划类型，1每日巡检2每周巡检3每月巡检4每季度巡检")
    private String planType;

    /**
     * 巡检对象，1服务器2网络设备3应用系统4基础设施
     */
    @ExcelProperty(value = "巡检对象，1服务器2网络设备3应用系统4基础设施")
    private String objectType;

    /**
     * 开始日期
     */
    @ExcelProperty(value = "开始日期")
    private Date beginTime;

    /**
     * 结束日期
     */
    @ExcelProperty(value = "结束日期")
    private Date endTime;

    /**
     * 巡检频率
     */
    @ExcelProperty(value = "巡检频率")
    private String inspectionFrequency;

    /**
     * 计划开始时间
     */
    @ExcelProperty(value = "计划开始时间")
    private String planBeginTime;

    /**
     * 持续时间(分钟)
     */
    @ExcelProperty(value = "持续时间(分钟)")
    private Long duration;

    /**
     * 负责人ID
     */
    @ExcelProperty(value = "负责人ID")
    private Long person;

    /**
     * 负责人姓名
     */
    private String nickName;

    /**
     * 负责人头像
     */
    private String avatar;

    /**
     * 巡检项IDS
     */
    @ExcelProperty(value = "巡检项ID")
    private String inspectionItemId;

    private List<OpsInspectionItemVo> itemVoList;

    /**
     * 1启用2停用
     */
    @ExcelProperty(value = "1启用2停用")
    private String status;


}
