package com.zcloud.primeport.dto;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * web-client
 *
 * @Author makejava
 * @Date 2026-03-05 11:33:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VideoAddCmd extends Command {
    @ApiModelProperty(value = "口门/闸机id 外键id ", name = "foreignId", required = true)
    @NotNull(message = "口门/闸机id 外键id 不能为空")
    private Long foreignId;
    @ApiModelProperty(value = "设备类型（1-口门 2-闸机）", name = "deviceType", required = true)
    @NotNull(message = "设备类型（1-口门 2-闸机）不能为空")
    private Integer deviceType;
    @ApiModelProperty(value = "摄像头id", name = "videoResourceId", required = true)
    @NotEmpty(message = "摄像头id不能为空")
    private String videoResourceId;
    @ApiModelProperty(value = "摄像头名称", name = "videoResourceName", required = true)
    @NotEmpty(message = "摄像头名称不能为空")
    private String videoResourceName;
    @ApiModelProperty(value = "摄像头编码", name = "videoResourceCode", required = true)
    private String videoResourceCode;
    @ApiModelProperty(value = "摄像头类型（1-移动 2-平台）", name = "videoType", required = true)
    @NotNull(message = "摄像头类型（1-移动 2-平台）不能为空")
    private Integer videoType;
    @ApiModelProperty(value = "经度", name = "longitude", required = true)
//    @NotEmpty(message = "经度不能为空")
    private String longitude;
    @ApiModelProperty(value = "纬度", name = "latitude", required = true)
//    @NotEmpty(message = "纬度不能为空")
    private String latitude;
}

