feat: 完成用户微服务 gRPC 实现,包含数据库与服务启动逻辑
This commit is contained in:
9
backend/services/user-svc/generate.sh
Normal file
9
backend/services/user-svc/generate.sh
Normal 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!"
|
||||
Reference in New Issue
Block a user