package com.dy.pipIrrProject.video;
|
|
import com.dy.pipIrrGlobal.pojoVi.ViCamera;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotEmpty;
|
import lombok.Data;
|
|
/**
|
* @Author: liurunyu
|
* @Date: 2025/6/9 10:18
|
* @Description
|
*/
|
@Data
|
@Schema(name = "摄像机(视频站)")
|
public class CameraDto {
|
public static final long serialVersionUID = 202506091020001L;
|
/**
|
* 主键
|
*/
|
public String id;
|
|
/**
|
* 类型(1萤石)
|
*/
|
@NotEmpty(message = "摄像机类型不能为空") //不能为空也不能为null
|
public Byte type;
|
|
/**
|
* 摄像机序列号
|
*/
|
@NotEmpty(message = "摄像机类型不能为空") //不能为空也不能为null
|
public String devNo;
|
|
/**
|
* 视频站名称
|
*/
|
@NotEmpty(message = "视频站名称不能为空") //不能为空也不能为null
|
public String name;
|
|
/**
|
* 经度
|
*/
|
public Double lng;
|
|
/**
|
* 纬度
|
*/
|
public Double lat;
|
|
/**
|
* 是否大屏展示(1是,0或null否)
|
*/
|
public Byte onScreen;
|
|
/**
|
* 大屏展示排序(大于等于1,数字越小排序越前)
|
*/
|
public Integer onSort;
|
|
/**
|
* 备注
|
*/
|
public String remark;
|
|
public ViCamera toNewPo(){
|
ViCamera po = new ViCamera();
|
po.type = this.type;
|
po.devNo = this.devNo;
|
po.name = this.name;
|
po.lng = this.lng;
|
po.lat = this.lat;
|
po.onScreen = this.onScreen;
|
po.onSort = this.onSort;
|
po.remark = this.remark;
|
return po;
|
}
|
public ViCamera toPo(){
|
ViCamera po = this.toNewPo();
|
po.id = Long.parseLong(this.id) ;
|
return po;
|
}
|
}
|