diff --git a/README.md b/README.md index 22a1322..25ba969 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # productservice -[![Build](https://github.com/HooYa-Bigdata/productservice/actions/workflows/workflow.yaml/badge.svg?branch=main)](https://github.com/HooYa-Bigdata/productservice/actions/workflows/workflow.yaml) \ No newline at end of file +[![Build](https://github.com/superjcd/productservice/actions/workflows/workflow.yaml/badge.svg?branch=main)](https://github.com/superjcd/productservice/actions/workflows/workflow.yaml) \ No newline at end of file diff --git a/cmd/productservice.go b/cmd/productservice.go index 44ef007..2523a24 100644 --- a/cmd/productservice.go +++ b/cmd/productservice.go @@ -3,7 +3,7 @@ package main import ( "flag" - "github.com/HooYa-Bigdata/productservice/cmd/server" + "github.com/superjcd/productservice/cmd/server" ) var cfg = flag.String("config", "config/config.yaml", "config file location") diff --git a/cmd/server/grpc.go b/cmd/server/grpc.go index 51693ec..a1407a4 100644 --- a/cmd/server/grpc.go +++ b/cmd/server/grpc.go @@ -5,8 +5,8 @@ import ( "log" "net" - "github.com/HooYa-Bigdata/productservice/config" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" + "github.com/superjcd/productservice/config" + v1 "github.com/superjcd/productservice/genproto/v1" "google.golang.org/grpc" ) diff --git a/cmd/server/http.go b/cmd/server/http.go index 47b1267..56e1b5d 100644 --- a/cmd/server/http.go +++ b/cmd/server/http.go @@ -5,9 +5,9 @@ import ( "fmt" "net/http" - "github.com/HooYa-Bigdata/productservice/config" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1/gw" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/superjcd/productservice/config" + v1 "github.com/superjcd/productservice/genproto/v1/gw" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" ) diff --git a/cmd/server/run.go b/cmd/server/run.go index f6cb78a..a9c8675 100644 --- a/cmd/server/run.go +++ b/cmd/server/run.go @@ -8,8 +8,8 @@ import ( "syscall" "time" - "github.com/HooYa-Bigdata/productservice/config" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" + "github.com/superjcd/productservice/config" + v1 "github.com/superjcd/productservice/genproto/v1" ) // Run Run service server diff --git a/cmd/server/wire.go b/cmd/server/wire.go index 11893b2..fc2c9ce 100644 --- a/cmd/server/wire.go +++ b/cmd/server/wire.go @@ -6,9 +6,9 @@ package server import ( "github.com/google/wire" - "github.com/HooYa-Bigdata/productservice/config" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" - "github.com/HooYa-Bigdata/productservice/service" + "github.com/superjcd/productservice/config" + v1 "github.com/superjcd/productservice/genproto/v1" + "github.com/superjcd/productservice/service" ) // InitServer Inject service's component diff --git a/cmd/server/wire_gen.go b/cmd/server/wire_gen.go index 99682fc..ec3c90f 100644 --- a/cmd/server/wire_gen.go +++ b/cmd/server/wire_gen.go @@ -7,9 +7,9 @@ package server import ( - "github.com/HooYa-Bigdata/productservice/config" - "github.com/HooYa-Bigdata/productservice/genproto/v1" - "github.com/HooYa-Bigdata/productservice/service" + "github.com/superjcd/productservice/config" + "github.com/superjcd/productservice/genproto/v1" + "github.com/superjcd/productservice/service" ) // Injectors from wire.go: diff --git a/genproto/v1/gw/product.pb.gw.go b/genproto/v1/gw/product.pb.gw.go index 74d3ef8..4edad40 100644 --- a/genproto/v1/gw/product.pb.gw.go +++ b/genproto/v1/gw/product.pb.gw.go @@ -13,7 +13,7 @@ import ( "io" "net/http" - extV1 "github.com/HooYa-Bigdata/productservice/genproto/v1" + extV1 "github.com/superjcd/productservice/genproto/v1" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" diff --git a/go.mod b/go.mod index a5a3122..3a1cb59 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/HooYa-Bigdata/productservice +module github.com/superjcd/productservice go 1.20 diff --git a/pkg/database/pg.go b/pkg/database/pg.go index 4715740..06d4155 100644 --- a/pkg/database/pg.go +++ b/pkg/database/pg.go @@ -3,7 +3,7 @@ package database import ( "fmt" - "github.com/HooYa-Bigdata/productservice/config" + "github.com/superjcd/productservice/config" "gorm.io/driver/postgres" "gorm.io/gorm" ) diff --git a/proto/v1/product.proto b/proto/v1/product.proto index 5c0d46a..31f577a 100644 --- a/proto/v1/product.proto +++ b/proto/v1/product.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package proto.v1; -option go_package = "github.com/HooYa-Bigdata/productservice/genproto/v1"; +option go_package = "github.com/superjcd/productservice/genproto/v1"; service ProductService { diff --git a/service/client.go b/service/client.go index c5bcbb3..1eaca8c 100644 --- a/service/client.go +++ b/service/client.go @@ -4,8 +4,8 @@ import ( "context" "time" - "github.com/HooYa-Bigdata/productservice/config" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" + "github.com/superjcd/productservice/config" + v1 "github.com/superjcd/productservice/genproto/v1" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" ) diff --git a/service/server.go b/service/server.go index ee0629a..ca2d20f 100644 --- a/service/server.go +++ b/service/server.go @@ -3,11 +3,11 @@ package service import ( "context" - "github.com/HooYa-Bigdata/productservice/config" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" - "github.com/HooYa-Bigdata/productservice/pkg/database" - "github.com/HooYa-Bigdata/productservice/service/store" - "github.com/HooYa-Bigdata/productservice/service/store/sql" + "github.com/superjcd/productservice/config" + v1 "github.com/superjcd/productservice/genproto/v1" + "github.com/superjcd/productservice/pkg/database" + "github.com/superjcd/productservice/service/store" + "github.com/superjcd/productservice/service/store/sql" "gorm.io/gorm" ) diff --git a/service/store/models.go b/service/store/models.go index 20ec5af..ae25a75 100644 --- a/service/store/models.go +++ b/service/store/models.go @@ -1,7 +1,7 @@ package store import ( - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" + v1 "github.com/superjcd/productservice/genproto/v1" "gorm.io/gorm" ) diff --git a/service/store/sql/product_details.go b/service/store/sql/product_details.go index eb920fb..e86c25c 100644 --- a/service/store/sql/product_details.go +++ b/service/store/sql/product_details.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" - "github.com/HooYa-Bigdata/productservice/service/store" + v1 "github.com/superjcd/productservice/genproto/v1" + "github.com/superjcd/productservice/service/store" "gorm.io/gorm" ) diff --git a/service/store/sql/products.go b/service/store/sql/products.go index 6631683..0916a0f 100644 --- a/service/store/sql/products.go +++ b/service/store/sql/products.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" - "github.com/HooYa-Bigdata/productservice/service/store" + v1 "github.com/superjcd/productservice/genproto/v1" + "github.com/superjcd/productservice/service/store" "gorm.io/gorm" ) diff --git a/service/store/sql/sql.go b/service/store/sql/sql.go index 3c40053..7891c26 100644 --- a/service/store/sql/sql.go +++ b/service/store/sql/sql.go @@ -4,7 +4,7 @@ import ( "fmt" "sync" - "github.com/HooYa-Bigdata/productservice/service/store" + "github.com/superjcd/productservice/service/store" "gorm.io/gorm" ) diff --git a/service/store/sql/store_test.go b/service/store/sql/store_test.go index 9421c2f..a188e7b 100644 --- a/service/store/sql/store_test.go +++ b/service/store/sql/store_test.go @@ -5,11 +5,11 @@ import ( "os" "testing" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" - "github.com/HooYa-Bigdata/productservice/service/store" "github.com/glebarez/sqlite" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + v1 "github.com/superjcd/productservice/genproto/v1" + "github.com/superjcd/productservice/service/store" "gorm.io/gorm" ) diff --git a/service/store/store.go b/service/store/store.go index de2d4e2..afde637 100644 --- a/service/store/store.go +++ b/service/store/store.go @@ -3,7 +3,7 @@ package store import ( "context" - v1 "github.com/HooYa-Bigdata/productservice/genproto/v1" + v1 "github.com/superjcd/productservice/genproto/v1" ) type Factory interface {