package org.dromara.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.domain.SenEventsReport;
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.*;

/**
 * 推送记录业务对象 sen_events_report
 *
 * @author luogang
 * @date 2024-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SenEventsReport.class, reverseConvertGenerate = false)
public class SenEventsReportBo extends BaseEntity {

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

    /**
     * 事件id
     */
    private Long eventId;
    /**
     * 上报平台
     */
    @NotBlank(message = "上报平台不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reportPlatform;

    /**
     * 监控点id
     */
    @NotNull(message = "监控点id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long pointId;

    /**
     * 监控点名称
     */
    @NotBlank(message = "监控点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pointName;

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

    /**
     * 数据详情
     */
    private String dataContent;

    /**
     * 数据类型
     */
    private String dataType;

    /**
     * 上报状态（0-发送成功1-发送失败）
     */
    private String reportStatus;

    /**
     * 描述
     */
    private String reportDesc;

    /**
     * 重试次数
     */
    private Integer retryNum;


}
