package org.dromara.domain.bo;

import org.dromara.domain.SenMonitorPointMedia;
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 java.util.Date;

/**
 * 监控点位视频媒介业务对象 sen_monitor_point_media
 *
 * @author luogang
 * @date 2024-09-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SenMonitorPointMedia.class, reverseConvertGenerate = false)
public class SenMonitorPointMediaBo extends BaseEntity {

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

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

    /**
     * 视频类型（1-实时视频2-离线视频）
     */
    @NotBlank(message = "视频类型（1-实时视频2-离线视频）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoType;

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

    /**
     * 实时流地址
     */
    @NotBlank(message = "实时流地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String streamUrl;

    /**
     * 离线视频名称
     */
    @NotBlank(message = "离线视频名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 离线视频存储路径
     */
    @NotBlank(message = "离线视频存储路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String filePath;

    /**
     * 离线视频校准时间
     */
    @NotNull(message = "离线视频校准时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date adjustTime;


}
