jiangping
2025-02-17 e3ab5aedd09b9e8b1d5e45077132f31e85bf6beb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.yzh.web.model.enums;
 
import io.github.yezhihao.netmc.session.Session;
import org.yzh.web.model.entity.DeviceDO;
 
/**
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
public enum SessionKey {
 
    Device;
 
    public static DeviceDO getDevice(Session session) {
        return (DeviceDO) session.getAttribute(Device);
    }
}