Skip to content

Commit 30dbadc

Browse files
committed
chore(runtime): Update API import paths to include runtime/ prefix
1 parent 2636e0a commit 30dbadc

File tree

63 files changed

+123
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+123
-123
lines changed

bootstrap/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
kratosconfig "github.com/go-kratos/kratos/v2/config"
88
"github.com/go-kratos/kratos/v2/log"
99

10-
bootstrapv1 "github.com/origadmin/runtime/api/gen/go/bootstrap/v1"
11-
sourcev1 "github.com/origadmin/runtime/api/gen/go/source/v1"
10+
bootstrapv1 "github.com/origadmin/runtime/api/gen/go/runtime/bootstrap/v1"
11+
sourcev1 "github.com/origadmin/runtime/api/gen/go/runtime/source/v1"
1212
"github.com/origadmin/runtime/bootstrap/constant"
1313
bootstrapconfig "github.com/origadmin/runtime/bootstrap/internal/config"
1414
runtimeconfig "github.com/origadmin/runtime/config"

bootstrap/internal/config/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55

66
kratosconfig "github.com/go-kratos/kratos/v2/config"
77

8-
appv1 "github.com/origadmin/runtime/api/gen/go/app/v1"
9-
discoveryv1 "github.com/origadmin/runtime/api/gen/go/discovery/v1"
10-
loggerv1 "github.com/origadmin/runtime/api/gen/go/logger/v1"
11-
middlewarev1 "github.com/origadmin/runtime/api/gen/go/middleware/v1"
8+
appv1 "github.com/origadmin/runtime/api/gen/go/runtime/app/v1"
9+
discoveryv1 "github.com/origadmin/runtime/api/gen/go/runtime/discovery/v1"
10+
loggerv1 "github.com/origadmin/runtime/api/gen/go/runtime/logger/v1"
11+
middlewarev1 "github.com/origadmin/runtime/api/gen/go/runtime/middleware/v1"
1212
"github.com/origadmin/runtime/bootstrap/constant"
1313
"github.com/origadmin/runtime/interfaces"
1414
)

bootstrap/internal/container/container.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/go-kratos/kratos/v2/middleware"
1010
"github.com/go-kratos/kratos/v2/registry"
1111

12-
loggerv1 "github.com/origadmin/runtime/api/gen/go/logger/v1"
12+
loggerv1 "github.com/origadmin/runtime/api/gen/go/runtime/logger/v1"
1313
"github.com/origadmin/runtime/interfaces" // Ensure this is imported for interfaces.AppInfo and ComponentFactoryRegistry
1414
runtimelog "github.com/origadmin/runtime/log"
1515
runtimeMiddleware "github.com/origadmin/runtime/middleware" // Import runtime/middleware package, but only for internal use.
@@ -226,7 +226,7 @@ func (b *Builder) initRegistries() error {
226226
}
227227

228228
func (b *Builder) initMiddlewares() error {
229-
helper := log.NewHelper(b.container.Logger()) // Use log.Helper
229+
helper := log.NewHelper(b.container.Logger()) // Use log.Helper
230230
b.container.serverMiddlewaresMap = make(map[string]middleware.Middleware) // Corrected type
231231
b.container.clientMiddlewaresMap = make(map[string]middleware.Middleware) // Corrected type
232232

config/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
kratosconfig "github.com/go-kratos/kratos/v2/config"
55
"google.golang.org/protobuf/proto"
66

7-
sourcev1 "github.com/origadmin/runtime/api/gen/go/source/v1"
7+
sourcev1 "github.com/origadmin/runtime/api/gen/go/runtime/source/v1"
88
"github.com/origadmin/runtime/interfaces"
99
"github.com/origadmin/runtime/interfaces/factory"
1010
"github.com/origadmin/runtime/interfaces/options"

config/envsource/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/go-kratos/kratos/v2/config"
1212
"github.com/go-kratos/kratos/v2/config/env"
1313

14-
sourcev1 "github.com/origadmin/runtime/api/gen/go/source/v1"
14+
sourcev1 "github.com/origadmin/runtime/api/gen/go/runtime/source/v1"
1515
runtimeconfig "github.com/origadmin/runtime/config"
1616
"github.com/origadmin/runtime/interfaces/options"
1717
)

config/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
kratosconfig "github.com/go-kratos/kratos/v2/config"
88

9-
sourcev1 "github.com/origadmin/runtime/api/gen/go/source/v1"
9+
sourcev1 "github.com/origadmin/runtime/api/gen/go/runtime/source/v1"
1010
"github.com/origadmin/runtime/interfaces"
1111
"github.com/origadmin/runtime/interfaces/factory"
1212
"github.com/origadmin/runtime/interfaces/options"

config/file/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
kratosconfig "github.com/go-kratos/kratos/v2/config"
1010

11-
sourcev1 "github.com/origadmin/runtime/api/gen/go/source/v1"
11+
sourcev1 "github.com/origadmin/runtime/api/gen/go/runtime/source/v1"
1212
runtimeconfig "github.com/origadmin/runtime/config"
1313
"github.com/origadmin/runtime/interfaces/options"
1414
)

config/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
kratosconfig "github.com/go-kratos/kratos/v2/config"
1111
"github.com/go-kratos/kratos/v2/config/file"
1212

13-
sourcev1 "github.com/origadmin/runtime/api/gen/go/source/v1"
13+
sourcev1 "github.com/origadmin/runtime/api/gen/go/runtime/source/v1"
1414
"github.com/origadmin/runtime/interfaces"
1515
"github.com/origadmin/runtime/interfaces/options"
1616
"github.com/origadmin/toolkits/errors"

errors/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
kerrors "github.com/go-kratos/kratos/v2/errors"
1111

12-
commonv1 "github.com/origadmin/runtime/api/gen/go/common/v1"
12+
commonv1 "github.com/origadmin/runtime/api/gen/go/runtime/common/v1"
1313
)
1414

1515
// ToKratos converts an internal Structured error to a Kratos error for API responses.

errors/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/go-kratos/kratos/v2/transport"
1919
transhttp "github.com/go-kratos/kratos/v2/transport/http"
2020

21-
commonv1 "github.com/origadmin/runtime/api/gen/go/common/v1"
21+
commonv1 "github.com/origadmin/runtime/api/gen/go/runtime/common/v1"
2222
"github.com/origadmin/runtime/log"
2323
tkerrors "github.com/origadmin/toolkits/errors"
2424
)

0 commit comments

Comments
 (0)