扫描二维码入场逻辑
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package com.sv.netty.config;
|
||||
|
||||
public enum MessageType {
|
||||
LINK("连接"),
|
||||
OPEN_DOOR("开门"),
|
||||
FAILED("开门校验失败");
|
||||
HB("心跳"),
|
||||
SCAN_CODE("扫码"),
|
||||
ENTER_DOOR("进门"),
|
||||
OUT_DOOR("出门");
|
||||
|
||||
private String message;
|
||||
MessageType(String message) {
|
||||
|
||||
@@ -3,14 +3,23 @@ package com.sv.netty.config;
|
||||
import io.netty.util.AttributeKey;
|
||||
|
||||
public interface NettyConstant {
|
||||
String SERVER_IP = "120.27.209.4";
|
||||
Integer SERVER_PORT = 56791;
|
||||
|
||||
String VENUE_SERVER_IP = "VENUE_SERVER_IP";
|
||||
String VENUE_SERVER_PORT = "VENUE_SERVER_PORT";
|
||||
String VENUE_CLIENT_SN = "VENUE_CLIENT_SN";
|
||||
String VENUE_CLIENT_VID = "VENUE_CLIENT_VID";
|
||||
|
||||
/**
|
||||
* session中存储终端发送的额外参数
|
||||
*/
|
||||
AttributeKey<ChannelParam> CHANNEL_PARAM = AttributeKey.newInstance("CHANNEL_PARAM");
|
||||
|
||||
String SPIT_WORD = "#";
|
||||
/**
|
||||
* 条形码
|
||||
*/
|
||||
String SPIT_WORD = "&&&";
|
||||
|
||||
char BARCODE_BEGIN = '@';
|
||||
char BARCODE_END = '#';
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.sv.netty.config;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VenueBarCode implements Serializable {
|
||||
|
||||
private Integer venueId;
|
||||
|
||||
private Integer memberId;
|
||||
|
||||
private String deviceName;
|
||||
|
||||
private Integer direction;
|
||||
|
||||
public Integer getVenueId() {
|
||||
return venueId;
|
||||
}
|
||||
|
||||
public void setVenueId(Integer venueId) {
|
||||
this.venueId = venueId;
|
||||
}
|
||||
|
||||
public Integer getMemberId() {
|
||||
return memberId;
|
||||
}
|
||||
|
||||
public void setMemberId(Integer memberId) {
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public Integer getDirection() {
|
||||
return direction;
|
||||
}
|
||||
|
||||
public void setDirection(Integer direction) {
|
||||
this.direction = direction;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user