package com.qiuguo.iot.box.websocket.api.domain;

import lombok.Data;
import org.springframework.web.reactive.socket.WebSocketMessage;
import org.springframework.web.reactive.socket.WebSocketSession;
import reactor.core.publisher.FluxSink;

@Data
public class BaseSession {

    /***
     * 设备序列号
     */
    protected String sn;
    protected WebSocketSession session;
    protected FluxSink<WebSocketMessage> sink;

    protected String logId;//当前请求日志ID

    protected String customerIP;//客户端IP
    /***
     * 用户id
     */
    protected Long userId;
    /***
     * 当前使用的BoxId，如果未绑定，那么就是0
     */
    protected Long deviceId = 0l;
}
