package org.dromara.inspection.domain.bo;

import org.dromara.inspection.domain.OpsInspectionTestPlan;
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 com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-巡检-试验计划业务对象 ops_inspection_test_plan
 *
 * @author LionLi
 * @date 2025-09-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsInspectionTestPlan.class, reverseConvertGenerate = false)
public class OpsInspectionTestPlanBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     * 电站ID
     */
    @NotNull(message = "电站ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

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

    /**
     * 计划编号
     */
    @NotBlank(message = "计划编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String planCode;

    /**
     * 实验对象类型,1安全试验2网络实验3性能试验4
     */
    @NotBlank(message = "实验对象类型,1安全试验2网络实验3性能试验4不能为空", groups = { AddGroup.class, EditGroup.class })
    private String testObject;

    /**
     *
     */
    @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 testInfo;

    /**
     * 实验环境
     */
    @NotBlank(message = "实验环境不能为空", groups = { AddGroup.class, EditGroup.class })
    private String testSetting;

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

    /**
     * 参与人员IDS
     */
    @NotBlank(message = "参与人员IDS不能为空", groups = { AddGroup.class, EditGroup.class })
    private String personIds;

    /**
     * 自定义检查项
     */
//    @NotBlank(message = "自定义检查项不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inspectionItems;

    /**
     * 实验步骤
     */
    private String testStep;

    /**
     * 所需资源与设备
     */
    private String testDevice;

    /**
     * 风险评估与应对措施
     */
    @NotBlank(message = "风险评估与应对措施不能为空", groups = { AddGroup.class, EditGroup.class })
    private String testSolutions;

    /**
     * 申请状态 1已批准2进行中3已完成4草稿5未通过
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String testStatus;

    //1启动2停止
    private String testPlanType;

}
