mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 02:57:23 +08:00
修正版本号的提示,还差parent目录,排除solon相关模块
This commit is contained in:
@@ -23,7 +23,7 @@ import org.springframework.stereotype.Component;
|
||||
* Sa-Token 二级Context - 创建器 [Grpc版]
|
||||
*
|
||||
* @author lym
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
@Component
|
||||
public class SaTokenSecondContextCreatorForGrpc implements SaTokenSecondContextCreator {
|
||||
|
@@ -29,7 +29,7 @@ import cn.dev33.satoken.exception.ApiDisabledException;
|
||||
* Sa-Token 上下文 [grpc版本]
|
||||
*
|
||||
* @author lym
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaTokenSecondContextForGrpc implements SaTokenSecondContext {
|
||||
|
||||
|
@@ -23,7 +23,7 @@ import io.grpc.Metadata;
|
||||
* 常量
|
||||
*
|
||||
* @author lym
|
||||
* @since 2022/8/26 14:27
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class GrpcContextConstants {
|
||||
public static final Metadata.Key<String> SA_SAME_TOKEN =
|
||||
|
@@ -22,7 +22,7 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lym
|
||||
* @since 2022/8/25 11:02
|
||||
* @since 1.34.0
|
||||
**/
|
||||
public class SaTokenGrpcContext {
|
||||
/**
|
||||
|
@@ -24,7 +24,7 @@ import org.springframework.core.Ordered;
|
||||
* 处理请求前,创建上下文
|
||||
*
|
||||
* @author lym
|
||||
* @since 2022/8/24 10:09
|
||||
* @since 1.34.0
|
||||
*/
|
||||
@GrpcGlobalServerInterceptor
|
||||
public class SaTokenContextGrpcServerInterceptor implements ServerInterceptor, Ordered {
|
||||
|
@@ -39,7 +39,7 @@ import net.devh.boot.grpc.client.interceptor.GrpcGlobalClientInterceptor;
|
||||
* 客户端请求的时候,带上token
|
||||
*
|
||||
* @author lym
|
||||
* @since 2022/8/24 15:45
|
||||
* @since 1.34.0
|
||||
*/
|
||||
@GrpcGlobalClientInterceptor
|
||||
public class SaTokenGrpcClientInterceptor implements ClientInterceptor, Ordered {
|
||||
|
@@ -32,7 +32,7 @@ import net.devh.boot.grpc.server.interceptor.GrpcGlobalServerInterceptor;
|
||||
* 鉴权,设置token
|
||||
*
|
||||
* @author lym
|
||||
* @since 2022/8/25 11:33
|
||||
* @since 1.34.0
|
||||
**/
|
||||
@GrpcGlobalServerInterceptor
|
||||
public class SaTokenGrpcServerInterceptor implements ServerInterceptor {
|
||||
|
@@ -25,7 +25,7 @@ import java.util.Map;
|
||||
* Request for grpc
|
||||
*
|
||||
* @author lym
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaRequestForGrpc implements SaRequest {
|
||||
|
||||
|
@@ -22,7 +22,7 @@ import cn.dev33.satoken.context.model.SaResponse;
|
||||
* Response for grpc
|
||||
*
|
||||
* @author lym
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaResponseForGrpc implements SaResponse {
|
||||
/**
|
||||
|
@@ -22,7 +22,7 @@ import cn.dev33.satoken.context.model.SaStorage;
|
||||
* Storage for grpc
|
||||
*
|
||||
* @author lym
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaStorageForGrpc implements SaStorage {
|
||||
|
||||
|
Reference in New Issue
Block a user