package org.dromara.domain.bo;

import org.dromara.domain.SenEvents;
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
 *
 * @author luogang
 * @date 2024-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SenEvents.class, reverseConvertGenerate = false)
public class SenEventsBo extends BaseEntity {

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

    /**
     * 事件分类（字典event_category）
     */
    @NotBlank(message = "事件分类（字典event_category）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String eventCategory;

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

    /**
     * 事件类型（字典event_type）
     */
    @NotBlank(message = "事件类型（字典event_type）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String eventType;

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

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

    /**
     * 区域id
     */
    @NotBlank(message = "区域id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaId;

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

    /**
     * 事件对象类型（交通、城管、社区）
     */
    @NotBlank(message = "事件对象类型（交通、城管、社区）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String eventObj;

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


}
