package org.dromara.inspection.domain.bo;

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

    /**
     *  id
     */
    private Long id;

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

    /**
     * 1低优先2中优先3高优先
     */
    @NotBlank(message = "优先级不能为空", groups = {AddGroup.class, EditGroup.class})
    private String level;

    /**
     * 1待处理2处理中3已完成
     */
    private String status;

    /**
     * 报修类型1硬件2软件
     */
    @NotBlank(message = "报修类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

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

    /**
     * 指派维修人
     */
//    @NotNull(message = "指派维修人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sendPerson;

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

    /**
     * 故障位置
     */
    @NotBlank(message = "故障位置不能为空", groups = {AddGroup.class, EditGroup.class})
    private String position;

    /**
     * 文件ID
     */
//    @NotBlank(message = "文件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileId;

    /**
     * 文件路径
     */
    private String fileUrl;

    /**
     * 报修人姓名
     */
//    @NotBlank(message = "姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String reportName;

    /**
     * 报修人联系电话
     */
//    @NotBlank(message = "电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String reportPhone;

    private String reportFinal;

    private Date reportFinishTime;

}
