|
@@ -5,12 +5,10 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
-import com.qmth.themis.business.constant.SystemConstant;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
-import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* @Description: 会话信息
|
|
@@ -29,6 +27,10 @@ public class TBSession implements Serializable {
|
|
|
@TableId(value = "id")
|
|
|
private String id;
|
|
|
|
|
|
+ @ApiModelProperty(value = "机构id")
|
|
|
+ @JsonSerialize(using = ToStringSerializer.class)
|
|
|
+ Long orgId;
|
|
|
+
|
|
|
@ApiModelProperty(value = "用户标识")
|
|
|
@TableField(value = "identity")
|
|
|
private String identity;
|
|
@@ -77,6 +79,14 @@ public class TBSession implements Serializable {
|
|
|
return serialVersionUID;
|
|
|
}
|
|
|
|
|
|
+ public Long getOrgId() {
|
|
|
+ return orgId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrgId(Long orgId) {
|
|
|
+ this.orgId = orgId;
|
|
|
+ }
|
|
|
+
|
|
|
public String getId() {
|
|
|
return id;
|
|
|
}
|
|
@@ -177,7 +187,8 @@ public class TBSession implements Serializable {
|
|
|
|
|
|
}
|
|
|
|
|
|
- public TBSession(String id, String identity, String type, String source, String platform, String deviceId, String address, String accessToken, Long expireTime) {
|
|
|
+ public TBSession(Long orgId, String id, String identity, String type, String source, String platform, String deviceId, String address, String accessToken, Long expireTime) {
|
|
|
+ this.orgId = orgId;
|
|
|
this.id = id;
|
|
|
this.identity = identity;
|
|
|
this.type = type;
|