package com.fzzy.gateway.entity; import com.bstek.dorado.annotation.PropertyDef; import lombok.Data; import javax.persistence.*; import java.io.Serializable; /** * 网关相关的设备管理 * * @author Andy */ @Data @Entity @Table(name = "G_GATEWAY_DEVICE") public class GatewayDevice implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "ID_", length = 40) @PropertyDef(label = "系统ID") private String id; @Column(name = "DEVICE_SN_", length = 50) @PropertyDef(label = "设备序列号") private String deviceSn; @Column(name = "DEVICE_ID_", length = 100) @PropertyDef(label = "设备ID") private String deviceId; @Column(name = "DEVICE_NAME_", length = 50) @PropertyDef(label = "名称") private String deviceName; @Column(name = "TYPE_", length = 10) @PropertyDef(label = "设备类型") private String type; @Column(name = "DEPOT_ID_", length = 30) @PropertyDef(label = "所属仓库") private String depotId; @Column(name = "DEPOT_NAME_", length = 50) @PropertyDef(label = "所属仓库") private String depotName; @Column(name = "IP_", length = 20) @PropertyDef(label = "通讯IP") private String ip; @Column(name = "PORT_") @PropertyDef(label = "通讯端口") private Integer port; @Column(name = "RTSP_", length = 100) @PropertyDef(label = "视频RTSP", description = "用于局域网内抓拍配置") private String rtsp; @Column(name = "HTTP_URL_", length = 100) @PropertyDef(label = "HTTP地址", description = "针对HTTP的接口配置") private String httpUrl; @PropertyDef(label = "上行协议") @Column(name = "pushProtocol", length = 20) private String pushProtocol; @PropertyDef(label = "同步协议") @Column(name = "syncProtocol", length = 20) private String syncProtocol; @Column(name = "ORG_ID_", length = 40) @PropertyDef(label = "组织编码") private String orgId; @Column(name = "REMARK_", length = 200) @PropertyDef(label = "备注", description = "备注信息") private String remark; }