package com.hotwj.platform.securityManagement.accidentReport.domain.bo;

import com.hotwj.platform.securityManagement.accidentReport.domain.HotAccidentReport;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 事故报告业务对象 hot_accident_report
 *
 * @author shihongwei
 * @date 2026-01-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotAccidentReport.class, reverseConvertGenerate = false)
public class HotAccidentReportBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

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

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

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

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

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
