This commit is contained in:
2024-10-15 17:19:23 +08:00
parent 8f903b457f
commit c76451788c
42 changed files with 1600 additions and 237 deletions

View File

@@ -6,6 +6,7 @@ import (
"os"
"tianyuan-api/apps/sentinel/internal/config"
TopUpServer "tianyuan-api/apps/sentinel/internal/server/TopUp"
productServer "tianyuan-api/apps/sentinel/internal/server/product"
secretServer "tianyuan-api/apps/sentinel/internal/server/secret"
userproductServer "tianyuan-api/apps/sentinel/internal/server/userproduct"
@@ -48,6 +49,7 @@ func main() {
sentinel.RegisterSecretServer(grpcServer, secretServer.NewSecretServer(ctx))
sentinel.RegisterProductServer(grpcServer, productServer.NewProductServer(ctx))
sentinel.RegisterUserProductServer(grpcServer, userproductServer.NewUserProductServer(ctx))
sentinel.RegisterTopUpServer(grpcServer, TopUpServer.NewTopUpServer(ctx))
if c.Mode == service.DevMode || c.Mode == service.TestMode {
reflection.Register(grpcServer)