修复:为 user-svc 添加健康检查和启动顺序控制

This commit is contained in:
fish
2026-03-28 21:54:09 +08:00
parent 5ac0a52bb1
commit c5260bcae8
31 changed files with 1995 additions and 167 deletions

View File

@@ -3,14 +3,14 @@ package service
import (
"context"
"backend/gateway/internal/config"
"backend/shared/pkg/logger"
"gateway/internal/config"
"shared/pkg/logger"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
// 导入生成的 proto 代码
userpb "backend/services/user-svc/proto"
userpb "shared/proto/user"
)
type UserService struct {