package org.dromara.inspection.domain.bo;

import org.dromara.inspection.domain.OpsInspectionMatter;
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;

/**
 * 运维-巡检-待办业务对象 ops_inspection_matter
 *
 * @author LionLi
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsInspectionMatter.class, reverseConvertGenerate = false)
public class OpsInspectionMatterBo 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 taskName;

    /**
     * 任务描述
     */
    @NotBlank(message = "任务描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String describeValue;

    /**
     * 任务开始时间
     */
    @NotNull(message = "任务开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date taskBeginTime;

    /**
     * 任务结束时间
     */
    @NotNull(message = "任务结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date taskEndTime;

    /**
     * 时间段
     */
    @NotBlank(message = "时间段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskTimeInfo;

    /**
     * 等级，1常规，2重要，3紧急
     */
    @NotBlank(message = "等级，1常规，2重要，3紧急不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskLevel;

    /**
     * 任务类型
     */
    @NotBlank(message = "任务类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskType;

    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
