Commit ce08b27e authored by chenzhao's avatar chenzhao

Merge remote-tracking branch 'origin/dev0124' into dev0124

parents 8f7e77ff 49bf6245
//package com.yeejoin.amos.boot.module.hygf.api.config;
//
//import com.yeejoin.amos.boot.module.hygf.api.entity.StdUserEmpower;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import java.util.List;
//
///**
// * @description:
// * @author: tw
// * @createDate: 2023/11/9
// */
//public class UserEmpowerThreadLocal {
// private static final Logger logger = LoggerFactory.getLogger(com.yeejoin.amos.boot.biz.common.interceptors.PermissionInterceptorContext.class);
//
// private static ThreadLocal<UserEmpowerThreadLocalModel> requestContext = ThreadLocal.withInitial(UserEmpowerThreadLocalModel::new);
//
// private static UserEmpowerThreadLocalModel getPermissionInterceptorContext() {
// return requestContext.get();
// }
//
// public static StdUserEmpower getDataAuthRule() {
// return getPermissionInterceptorContext().getThreadLocalData();
// }
//
// public static void setDataAuthRule(StdUserEmpower dataAuthRule) {
// getPermissionInterceptorContext().setDataAuthRule(dataAuthRule);
// }
//
// public static void clean() {
// if (requestContext != null) {
// requestContext.remove();
// }
// }
// }
\ No newline at end of file
//package com.yeejoin.amos.boot.module.hygf.api.config;
//
//import com.yeejoin.amos.boot.module.hygf.api.entity.StdUserEmpower;
//
//import java.io.Serializable;
//import java.util.List;
//
///**
// * @description:
// * @author: tw
// * @createDate: 2023/11/9
// */
//public class UserEmpowerThreadLocalModel implements Serializable {
// private static final long serialVersionUID = 1L;
//
// private StdUserEmpower threadLocalData;
//
// public StdUserEmpower getThreadLocalData() {
// return threadLocalData;
// }
//
// public void setDataAuthRule(StdUserEmpower threadLocalData) {
// this.threadLocalData = threadLocalData;
// }
//
// public void clean() {
// this.threadLocalData = null;
// }
//
//}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment