You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2023/03/07 09:52:13 UTC
[linkis] branch dev-1.3.2 updated: gateway-add-baseinfo (#4315)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.3.2
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/dev-1.3.2 by this push:
new 2d6888477 gateway-add-baseinfo (#4315)
2d6888477 is described below
commit 2d688847755dba1413a13407cfd0057c7a07033a
Author: huangKai-2323 <62...@users.noreply.github.com>
AuthorDate: Tue Mar 7 17:52:06 2023 +0800
gateway-add-baseinfo (#4315)
---
.../org/apache/linkis/gateway/config/GatewayConfiguration.scala | 2 ++
.../scala/org/apache/linkis/gateway/security/UserRestful.scala | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewayConfiguration.scala b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewayConfiguration.scala
index 9bb95e5c4..f7558fcad 100644
--- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewayConfiguration.scala
+++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewayConfiguration.scala
@@ -106,4 +106,6 @@ object GatewayConfiguration {
"List of supported routing services"
)
+ val IS_DOWNLOAD = CommonVars("linkis.web.result.set.export.enable", true)
+
}
diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/security/UserRestful.scala b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/security/UserRestful.scala
index ef0f44cca..5cbdfdca2 100644
--- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/security/UserRestful.scala
+++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/security/UserRestful.scala
@@ -80,6 +80,7 @@ abstract class AbstractUserRestful extends UserRestful with Logging {
case "publicKey" => publicKey(gatewayContext)
case "heartbeat" => heartbeat(gatewayContext)
case "proxy" => proxy(gatewayContext)
+ case "baseinfo" => baseinfo(gatewayContext)
case _ =>
Message.error("unknown request URI " + path)
}
@@ -133,6 +134,12 @@ abstract class AbstractUserRestful extends UserRestful with Logging {
)
}
+ def baseinfo(gatewayContext: GatewayContext): Message = {
+ Message
+ .ok("get baseinfo success(获取成功)!")
+ .data("resultSetExportEnable", GatewayConfiguration.IS_DOWNLOAD.getValue)
+ }
+
def publicKey(gatewayContext: GatewayContext): Message = {
val message = Message.ok("Gain success(获取成功)!").data("enableSSL", SSOUtils.sslEnable)
if (GatewayConfiguration.LOGIN_ENCRYPT_ENABLE.getValue) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org