package org.dromara.inspection.domain.bo;

import org.dromara.inspection.domain.OpsInspectionTaskProblem;
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_task_problem
 *
 * @author LionLi
 * @date 2025-09-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsInspectionTaskProblem.class, reverseConvertGenerate = false)
public class OpsInspectionTaskProblemBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     * 巡检任务ID
     */
    @NotNull(message = "巡检任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

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

    /**
     * 发现问题类型1磁盘使用率2内存使用率3服务状态4响应时间5设备运行状态
     */
    @NotBlank(message = "发现问题类型1磁盘使用率2内存使用率3服务状态4响应时间5设备运行状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 问题详细信息
     */
    @NotBlank(message = "问题详细信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String info;

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

    /**
     * 是否解决1解决2未解决
     */
    @NotBlank(message = "是否解决1解决2未解决不能为空", groups = { AddGroup.class, EditGroup.class })
    private String finish;

    /**
     * 解决日期
     */
    private Date finishTime;


}
