package com.ard.device.camera.domain; import com.ard.common.annotation.Excel; import com.ard.common.core.domain.BaseEntity; import com.ard.device.channel.domain.ArdChannel; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; /** * 相机设备对象 ard_camera * * @author 刘苏义 * @date 2023-02-11 */ @Data @AllArgsConstructor @NoArgsConstructor public class ArdCamera extends BaseEntity { private static final long serialVersionUID = 1L; public ArdCamera(String type) { this.type = type; } /** * id */ @Excel(name = "id") private String id; /** * 名称 */ @Excel(name = "名称") private String name; /** * ip */ @Excel(name = "ip") private String ip; /** * 端口 */ @Excel(name = "端口") private Integer port; /** * rtsp端口 */ @Excel(name = "rtsp端口") private Integer rtspPort; /** * 用户名 */ @Excel(name = "用户名") private String username; /** * 密码 */ @Excel(name = "密码") private String password; /** * 类型 * 0-小光电 1-大光电 2-终端NVR 3-超脑 */ @Excel(name = "类型") private String type; /** * 厂商 */ @Excel(name = "厂商") private String factory; /** * 经度 */ @Excel(name = "经度") private Double longitude; /** * 纬度 */ @Excel(name = "纬度") private Double latitude; /** * 高层 */ @Excel(name = "高层") private Double altitude; /** * 用户ID */ @Excel(name = "用户ID") private Long userId; /** * 部门ID */ @Excel(name = "部门ID") private Long deptId; /** * 登录ID */ private Long loginId; /** * 在线状态 0-离线 1-在线 */ private String state; /** * 起始通道号 */ private Integer startChan; /** * 通道数 */ @Excel(name = "通道数") private Integer chanNum; /** * 通道 */ private List channelList; /** * 通道号 */ private Integer chanNo; /** * 挂载机场ID */ @Excel(name = "挂载机场") private Integer dockId; @Override public int hashCode() { return id.hashCode(); } @Override public boolean equals(Object obj) { if (obj instanceof ArdCamera) { return id.equals(((ArdCamera) obj).getId()); } else { return false; } } }