parent
851dc54b49
commit
9b3767a954
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.framework.security.context;
|
||||
|
||||
/**
|
||||
* 权限信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class PermissionContextHolder
|
||||
{
|
||||
private static final ThreadLocal<String> contextHolder = new ThreadLocal<>();
|
||||
|
||||
public static void setContext(String permission)
|
||||
{
|
||||
contextHolder.set(permission);
|
||||
}
|
||||
|
||||
public static String getContext()
|
||||
{
|
||||
return contextHolder.get();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue