package com.ruoyi.framework.security.context; import com.ruoyi.common.core.domain.model.InstitutionUser; /** * 三方身份信息 */ public class ThreeInContextHolder { private static final ThreadLocal contextHolder = new ThreadLocal<>(); public static InstitutionUser getContext() { return contextHolder.get(); } public static void setContext(InstitutionUser context) { contextHolder.set(context); } public static void clearContext() { contextHolder.remove(); } }