Skip to content

Commit

Permalink
chore: remove outdated proto codes in form of go module
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmx233 committed Apr 5, 2024
1 parent 390828f commit 9a8b878
Show file tree
Hide file tree
Showing 7 changed files with 668 additions and 6 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ require (
github.com/go-redis/redis/v8 v8.11.5
github.com/go-webauthn/webauthn v0.10.2
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/ncuhome/GeniusAuthoritarianProtos v0.0.4
github.com/pquerna/otp v1.4.0
github.com/robfig/cron/v3 v3.0.1
github.com/sirupsen/logrus v1.9.3
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/ncuhome/GeniusAuthoritarianProtos v0.0.4 h1:CzlRdPZvUJTWT+bLxF7Miy99RWHG0P8d1+Mq9s8+nbQ=
github.com/ncuhome/GeniusAuthoritarianProtos v0.0.4/go.mod h1:q8WcqyGzp0pBuoWWAQJhTucvMiPkh+oAeDMIClZSQlc=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
Expand Down
10 changes: 9 additions & 1 deletion internal/rpc/PROTOS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
pull git submodules first
**pull git submodules and enter this dir first**

#### app.proto

```shell
protoc --go_out=.\app\appProto --go-grpc_out=.\app\appProto .\protos\app.proto
```

#### refreshToken.proto

```shell
protoc --go_out=.\refreshToken\refreshTokenProto --go-grpc_out=.\refreshToken\refreshTokenProto .\protos\refreshToken.proto
```
2 changes: 1 addition & 1 deletion internal/rpc/refreshToken/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"github.com/ncuhome/GeniusAuthoritarian/internal/pkg/jwt"
"github.com/ncuhome/GeniusAuthoritarian/internal/pkg/jwt/jwtClaims"
"github.com/ncuhome/GeniusAuthoritarian/internal/rpc/refreshToken/refreshTokenProto"
"github.com/ncuhome/GeniusAuthoritarian/internal/service"
refreshTokenProto "github.com/ncuhome/GeniusAuthoritarianProtos/refreshToken"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"gorm.io/gorm"
Expand Down
Loading

0 comments on commit 9a8b878

Please sign in to comment.