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 618701d commit a0fc808
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Rivalservice微服务

[![Build](https://github.com/HooYa-Bigdata/rivalservice/actions/workflows/workflow.yaml/badge.svg?branch=main)](https://github.com/HooYa-Bigdata/rivalservice/actions/workflows/workflow.yaml)
[![Build](https://github.com/superjcd/rivalservice/actions/workflows/workflow.yaml/badge.svg?branch=main)](https://github.com/superjcd/rivalservice/actions/workflows/workflow.yaml)
2 changes: 1 addition & 1 deletion cmd/rivalservice.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/rivalservice/cmd/server"
"github.com/superjcd/rivalservice/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/rivalservice/config"
v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/config"
v1 "github.com/superjcd/rivalservice/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/rivalservice/config"
v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1/gw"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/superjcd/rivalservice/config"
v1 "github.com/superjcd/rivalservice/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/rivalservice/config"
v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/config"
v1 "github.com/superjcd/rivalservice/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/rivalservice/config"
v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
"github.com/HooYa-Bigdata/rivalservice/service"
"github.com/superjcd/rivalservice/config"
v1 "github.com/superjcd/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/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/rivalservice.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/rivalservice
module github.com/superjcd/rivalservice

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/rivalservice/config"
"github.com/superjcd/rivalservice/config"
"gorm.io/driver/postgres"
"gorm.io/gorm"
)
Expand Down
2 changes: 1 addition & 1 deletion proto/v1/rivalservice.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package proto.v1;

option go_package = "github.com/HooYa-Bigdata/rivalservice/genproto/v1";
option go_package = "github.com/superjcd/rivalservice/genproto/v1";


service RivalService {
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/rivalservice/config"
v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/config"
v1 "github.com/superjcd/rivalservice/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/rivalservice/config"
v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
"github.com/HooYa-Bigdata/rivalservice/pkg/database"
"github.com/HooYa-Bigdata/rivalservice/service/sql_store"
"github.com/HooYa-Bigdata/rivalservice/service/sql_store/sql"
"github.com/superjcd/rivalservice/config"
v1 "github.com/superjcd/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/pkg/database"
"github.com/superjcd/rivalservice/service/sql_store"
"github.com/superjcd/rivalservice/service/sql_store/sql"

"gorm.io/gorm"
)
Expand Down
4 changes: 2 additions & 2 deletions service/sql_store/models.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package sql_store

import (
v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
v1 "github.com/superjcd/rivalservice/genproto/v1"
"gorm.io/gorm"
)

Expand Down Expand Up @@ -60,7 +60,7 @@ type UserRivalChange struct {
}

type UserRivalChangeList struct {
TotalCount int `json:"totalCount"`
TotalCount int `json:"totalCount"`
Items []UserRivalChange `json:"items"`
}

Expand Down
4 changes: 2 additions & 2 deletions service/sql_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/rivalservice/genproto/v1"
"github.com/HooYa-Bigdata/rivalservice/service/sql_store"
v1 "github.com/superjcd/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/service/sql_store"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions service/sql_store/sql/rival_changes.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/rivalservice/genproto/v1"
"github.com/HooYa-Bigdata/rivalservice/service/sql_store"
v1 "github.com/superjcd/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/service/sql_store"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions service/sql_store/sql/rivals.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package sql
import (
"context"

v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
"github.com/HooYa-Bigdata/rivalservice/service/sql_store"
v1 "github.com/superjcd/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/service/sql_store"
"gorm.io/gorm"
)

Expand Down
2 changes: 1 addition & 1 deletion service/sql_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/rivalservice/service/sql_store"
"github.com/superjcd/rivalservice/service/sql_store"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions service/sql_store/sql/sqlstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"testing"
"time"

v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
"github.com/HooYa-Bigdata/rivalservice/service/sql_store"
"github.com/glebarez/sqlite"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
v1 "github.com/superjcd/rivalservice/genproto/v1"
"github.com/superjcd/rivalservice/service/sql_store"
"gorm.io/gorm"
"gorm.io/gorm/logger"
)
Expand Down
2 changes: 1 addition & 1 deletion service/sql_store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sql_store
import (
"context"

v1 "github.com/HooYa-Bigdata/rivalservice/genproto/v1"
v1 "github.com/superjcd/rivalservice/genproto/v1"
)

type SqlFactory interface {
Expand Down

0 comments on commit a0fc808

Please sign in to comment.