package org.dromara.monitoring.domain.bo;

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 org.dromara.monitoring.domain.MonDevicePreset;

/**
 * 摄像头预置位业务对象 mon_device_preset
 *
 * @author LionLi
 * @date 2025-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MonDevicePreset.class, reverseConvertGenerate = false)
public class MonDevicePresetBo extends BaseEntity {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 设备序列号
     */
    @NotBlank(message = "设备序列号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceSerial;

    /**
     * 通道号
     */
    @NotNull(message = "通道号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long channelNo;

    /**
     * 预置点序号
     */
    private Long presetIndex;

    /**
     * 预置点
     */
    @NotBlank(message = "预置点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String presetName;


}
