netty-确定客户端和服务端编解码工具
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
package com.enums;
|
||||
|
||||
/**
|
||||
* 设备属性,控制入场还是控制出场
|
||||
*/
|
||||
public enum DeviceType {
|
||||
|
||||
ENTER(0,"进场"),
|
||||
OUT(1,"出场");
|
||||
private int code;
|
||||
private String name;
|
||||
|
||||
DeviceType(int code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
package com.sv.entity;
|
||||
|
||||
import com.enums.DeviceType;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@@ -15,7 +13,7 @@ public class Device implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
@@ -38,8 +36,6 @@ public class Device implements Serializable {
|
||||
|
||||
private Integer venueType;
|
||||
|
||||
private DeviceType deviceType;
|
||||
|
||||
private Integer bindMember;
|
||||
|
||||
private Date bindTime;
|
||||
@@ -75,7 +71,7 @@ public class Device implements Serializable {
|
||||
/**
|
||||
* 设置
|
||||
*
|
||||
* @param id
|
||||
* @param id
|
||||
*/
|
||||
public void setId(Integer id){
|
||||
this.id = id;
|
||||
@@ -84,7 +80,7 @@ public class Device implements Serializable {
|
||||
/**
|
||||
* 获取
|
||||
*
|
||||
* @return
|
||||
* @return
|
||||
*/
|
||||
public Integer getId(){
|
||||
return id;
|
||||
@@ -249,14 +245,6 @@ public class Device implements Serializable {
|
||||
this.venueType = venueType;
|
||||
}
|
||||
|
||||
public DeviceType getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(DeviceType deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Integer getBindMember() {
|
||||
return bindMember;
|
||||
}
|
||||
@@ -272,4 +260,4 @@ public class Device implements Serializable {
|
||||
public void setBindTime(Date bindTime) {
|
||||
this.bindTime = bindTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user