瀏覽代碼

修改请求

yjp 1 年之前
父節點
當前提交
ce7a63a468
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      convenient/domain_gateway/sql_executor/sql_executor.go

+ 4 - 0
convenient/domain_gateway/sql_executor/sql_executor.go

@@ -24,6 +24,10 @@ func WithServiceApiVersion(serviceApiVersion string) Option {
 
 var serviceBaseUrlMap sync.Map
 
+func RegisterService(serviceShortName string, baseUrl string) {
+	serviceBaseUrlMap.Store(serviceShortName, baseUrl)
+}
+
 func BuildGateway(builder *gateway.Builder, opts ...Option) {
 	options := new(Options)