package org.dromara.inspection.domain.bo;

import org.dromara.inspection.domain.OpsInspectionPlan;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-巡检-计划业务对象 ops_inspection_plan
 *
 * @author LionLi
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsInspectionPlan.class, reverseConvertGenerate = false)
public class OpsInspectionPlanBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

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

    /**
     * 计划名称
     */
    @NotNull(message = "计划名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String planName;

    /**
     * 计划类型，1每日巡检2每周巡检3每月巡检4每季度巡检
     */
    @NotBlank(message = "计划类型，1每日巡检2每周巡检3每月巡检4每季度巡检不能为空", groups = { AddGroup.class, EditGroup.class })
    private String planType;

    /**
     * 巡检对象，1服务器2网络设备3应用系统4基础设施
     */
    @NotBlank(message = "巡检对象，1服务器2网络设备3应用系统4基础设施不能为空", groups = { AddGroup.class, EditGroup.class })
    private String objectType;

    /**
     * 开始日期
     */
    @NotNull(message = "开始日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date beginTime;

    /**
     * 结束日期
     */
    @NotNull(message = "结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 巡检频率
     */
    @NotBlank(message = "巡检频率不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inspectionFrequency;

    /**
     * 计划开始时间
     */
    @NotBlank(message = "计划开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String planBeginTime;

    /**
     * 持续时间(分钟)
     */
    @NotNull(message = "持续时间(分钟)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long duration;

    /**
     * 负责人ID
     */
    @NotNull(message = "负责人ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long person;

    /**
     * 巡检项IDS
     */
    private String inspectionItemId;

    /**
     * 1启用2停用
     */
    @NotBlank(message = "1启用2停用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
