diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/java/org/apache/linkis/gateway/authentication/errorcode/LinkisGwAuthenticationErrorCodeSummary.java b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/java/org/apache/linkis/gateway/authentication/errorcode/LinkisGwAuthenticationErrorCodeSummary.java
index 5abff15380..5679fe0640 100644
--- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/java/org/apache/linkis/gateway/authentication/errorcode/LinkisGwAuthenticationErrorCodeSummary.java
+++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/java/org/apache/linkis/gateway/authentication/errorcode/LinkisGwAuthenticationErrorCodeSummary.java
@@ -20,12 +20,17 @@
import org.apache.linkis.common.errorcode.LinkisErrorCode;
public enum LinkisGwAuthenticationErrorCodeSummary implements LinkisErrorCode {
- TOKEN_IS_NULL(15205, "token is null(token 令牌为空)!"),
- FAILED_TO_LOAD_TOKEN(15200, "Failed to load token from DB into cache(无法将 token 令牌从数据库加载到缓存中)!"),
- TOKEN_VALID_OR_STALE(15201, "Token is not valid or stale(token 令牌无效或已过期)!"),
- ILLEGAL_TOKENUSER(15202, "Illegal TokenUser for Token(Token非法用户)!"),
- ILLEGAL_HOST(15203, "Illegal Host for Token(Token非法主机)!"),
- INVALID_TOKEN(15204, "Invalid Token(令牌无效)");
+ FAILED_TO_LOAD_TOKEN(
+ 15200,
+ "Failed to load token:{0} from DB into cache(无法将 Token:{0} 令牌从数据库加载到缓存中),Caused by:{1}"),
+ TOKEN_IS_EXPIRED(15201, "Token is not valid or stale({0} 令牌已过期)!"),
+ ILLEGAL_TOKENUSER(15202, "Illegal TokenUser for Token(Token非法用户: {0})!"),
+ ILLEGAL_HOST(15203, "Illegal Host for Token(非法ip: {0})!"),
+ INVALID_TOKEN(15204, "Invalid Token(数据库中未配置的无效令牌)"),
+ TOKEN_IS_NULL(15205, "token is null({0} 令牌参数为空)!"),
+ FAILED_TO_BAD_SQLGRAMMAR(
+ 15206, "Failed to query token:{0} data(Token:{0} 数据查询失败), Caused by:{1}"),
+ NOT_EXIST_DB(15207, "Token:{0} does not exist in the table(Token:{0} 表中不存在)!, Caused by:{1}");
/** (errorCode)错误码 */
private final int errorCode;
diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/resources/mapper/common/TokenMapper.xml b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/resources/mapper/common/TokenMapper.xml
index 8ae1a8ba9d..155c548d61 100644
--- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/resources/mapper/common/TokenMapper.xml
+++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/main/resources/mapper/common/TokenMapper.xml
@@ -36,8 +36,8 @@
linkis_mg_gateway_auth_token
-