session表channel字段加长到16位
This commit is contained in:
LAPTOP-8KGKDQIB\39794 2024-03-22 18:33:04 +08:00
parent 66c4ed8398
commit 7e7b4c03da
3 changed files with 4 additions and 45 deletions

View File

@ -65,7 +65,7 @@ public class DefaultMessagePusher implements CIMMessagePusher {
/* /*
* 通过发送redis广播到集群中的每台实例获得当前UID绑定了连接并推送 * 通过发送redis广播到集群中的每台实例获得当前UID绑定了连接并推送
* @see com.farsunset.hoxin.component.message.PushMessageListener * @see com.farsunset.cim.component.message.PushMessageListener
*/ */
signalRedisTemplate.push(message); signalRedisTemplate.push(message);

View File

@ -25,7 +25,7 @@ package com.farsunset.cim.entity;
import javax.persistence.*; import javax.persistence.*;
@Entity @Entity
@Table(name = "t_hoxin_session") @Table(name = "t_cim_session")
public class Session{ public class Session{
public static final int STATE_ACTIVE = 0; public static final int STATE_ACTIVE = 0;
@ -80,7 +80,7 @@ public class Session{
/** /**
* 终端设备类型 * 终端设备类型
*/ */
@Column(name = "channel",length = 10,nullable = false) @Column(name = "channel",length = 16,nullable = false)
private String channel; private String channel;
/** /**
@ -107,24 +107,6 @@ public class Session{
@Column(name = "bind_time") @Column(name = "bind_time")
private Long bindTime; private Long bindTime;
/**
* 经度
*/
@Column(name = "longitude")
private Double longitude;
/**
* 维度
*/
@Column(name = "latitude")
private Double latitude;
/**
* 位置
*/
@Column(name = "location")
private String location;
/** /**
* 状态 * 状态
*/ */
@ -210,30 +192,6 @@ public class Session{
this.bindTime = bindTime; this.bindTime = bindTime;
} }
public Double getLongitude() {
return longitude;
}
public void setLongitude(Double longitude) {
this.longitude = longitude;
}
public Double getLatitude() {
return latitude;
}
public void setLatitude(Double latitude) {
this.latitude = latitude;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getLanguage() { public String getLanguage() {
return language; return language;
} }

View File

@ -0,0 +1 @@
mvn clean install deploy -P release