111
k94314517
2025-03-04 bfd4f08b4304cac2822db86de3712e1c6b37f6ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.doumee.jtt808.web.model.enums;
 
import io.github.yezhihao.netmc.session.Session;
import com.doumee.jtt808.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);
    }
}