package org.dromara.domain.bo;

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

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

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

    /**
     * 对象类型（如人、车等）
     */
    @NotBlank(message = "对象类型（如人、车等）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String objectType;

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

    /**
     * 对象标识（如车牌号、人脸特征码等）
     */
    @NotBlank(message = "对象标识（如车牌号、人脸特征码等）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String objectId;

    /**
     * 对象属性（如品牌）
     */
    @NotBlank(message = "对象属性（如品牌）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String objectAttr;


}
