package com.cxy.classroll.common.util;
/**
 * 获取当前用户信息帮助类
 */
public class AuthContextHolder {
    private static ThreadLocal<Long> userId = new ThreadLocal<Long>();

    public static void setUserId(Long _userId) {
        userId.set(_userId);
    }

    public static Long getUserId() {
        return userId.get();
    }

    public static void removeUserId() {
        userId.remove();
    }
}
