yjp hace 1 año
padre
commit
ce7a63a468
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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)