Skip to content

Commit

Permalink
change repo
Browse files Browse the repository at this point in the history
  • Loading branch information
superjcd committed Sep 21, 2023
1 parent fbad0b2 commit 25a5f65
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
[![Build](https://github.com/superjcd/productservice/actions/workflows/workflow.yaml/badge.svg?branch=main)](https://github.com/superjcd/productservice/actions/workflows/workflow.yaml)
2 changes: 1 addition & 1 deletion cmd/productservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions cmd/server/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/server/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/server/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cmd/server/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cmd/server/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion genproto/v1/gw/product.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/HooYa-Bigdata/productservice
module github.com/superjcd/productservice

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion pkg/database/pg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion proto/v1/product.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions service/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
10 changes: 5 additions & 5 deletions service/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion service/store/models.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions service/store/sql/product_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions service/store/sql/products.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion service/store/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sync"

"github.com/HooYa-Bigdata/productservice/service/store"
"github.com/superjcd/productservice/service/store"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions service/store/sql/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion service/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 25a5f65

Please sign in to comment.