feat: 完成用户微服务 gRPC 实现,包含数据库与服务启动逻辑

This commit is contained in:
fish
2026-03-28 18:11:15 +08:00
parent 911654b60b
commit 27da6939f4
6 changed files with 300 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
# 生成 gRPC 代码
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
protoc --go_out=. --go-grpc_out=. user.proto
echo "gRPC code generated successfully!"