Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
43dec3b
feat(rpc): add rpc_name flag for generating rpc service code
gszw90 Aug 2, 2025
c5b96d0
refactor(goctl): remove unnecessary RPC name printing
gszw90 Aug 2, 2025
2136351
Merge branch 'master' into feat-add-rpc-name
gszw90 Aug 3, 2025
65ed0c0
docs: update comment for VarStringRpcName
gszw90 Aug 3, 2025
b1db165
Merge remote-tracking branch 'origin/feat-add-rpc-name' into feat-add…
gszw90 Aug 3, 2025
07bb2f4
Merge branch 'master' into feat-add-rpc-name
gszw90 Aug 7, 2025
b6ef65a
feat(rpc): add rpc_name flag for generating rpc service code
gszw90 Aug 2, 2025
e0a203c
refactor(goctl): remove unnecessary RPC name printing
gszw90 Aug 2, 2025
312fda3
docs: update comment for VarStringRpcName
gszw90 Aug 3, 2025
eba5802
Merge branch 'master' into feat-add-rpc-name
gszw90 Aug 21, 2025
a484c26
feat(goctl): rename rpc_name to name for rpc service generating
gszw90 Aug 21, 2025
9a10291
Merge branch 'feat-add-rpc-name' of github.com:gszw90/go-zero into fe…
gszw90 Aug 21, 2025
e7c9e3b
docs(goctl): update rpc README for --name flag
gszw90 Aug 21, 2025
0e7f421
Merge branch 'master' into feat-add-rpc-name
gszw90 Aug 27, 2025
1677c8c
feat: add role and user services with corresponding proto definitions
gszw90 Sep 5, 2025
2c44ab9
feat: remove local files
gszw90 Sep 5, 2025
456cf8d
Merge remote-tracking branch 'origin/feat-add-rpc-name' into protoc
gszw90 Sep 5, 2025
f73a9b4
feat: update ZRpcContext to support multiple source files and enhance…
gszw90 Sep 5, 2025
17543e9
Merge branch 'master' into protoc
gszw90 Nov 19, 2025
4d9b783
feat(rpc): support proto import path and message parsing
gszw90 Nov 20, 2025
2a2943c
fix(rpc): handle go_package option and stream server generation
gszw90 Nov 20, 2025
559f7ca
feat(rpc): add proto import and test cases
gszw90 Nov 20, 2025
e74300a
test(rpc): add test case for proto import message parsing
gszw90 Nov 20, 2025
633ac79
test(rpc): remove code markers from proto test
gszw90 Nov 20, 2025
b2ff3c2
fix(rpc): handle relative import paths for proto messages
gszw90 Nov 20, 2025
d14eddb
feat(rpc): support multi-proto generation and imports
gszw90 Nov 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ require (
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand All @@ -95,6 +97,7 @@ require (
github.com/prometheus/common v0.62.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.1.2 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ github.com/openzipkin/zipkin-go v0.4.3 h1:9EGwpqkgnwdEIJ+Od7QVSEIH+ocmm5nPat0G7s
github.com/openzipkin/zipkin-go v0.4.3/go.mod h1:M9wCJZFWCo2RiY+o1eBCEMe0Dp2S5LDHcMZmk3RmK7c=
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand All @@ -158,6 +159,7 @@ github.com/redis/go-redis/v9 v9.16.0 h1:OotgqgLSRCmzfqChbQyG1PHC3tLNR89DG4jdOERS
github.com/redis/go-redis/v9 v9.16.0/go.mod h1:u410H11HMLoB+TP67dz8rL9s6QW2j76l0//kSOd3370=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=
Expand Down
14 changes: 14 additions & 0 deletions tools/goctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,17 @@ image:
docker tag kevinwan/goctl:$(version)-arm64 kevinwan/goctl:latest-arm64
docker push kevinwan/goctl:$(version)-arm64
docker push kevinwan/goctl:latest-arm64


#echo $(shell find $(target_dir) -name "*.proto")
#protoc -I example/app/pb --go_out=example/app/pb --go-grpc_out=example/app/pb
.PHONY: generate-proto
generate-proto:
$(eval target_dir := $(filter-out $@,$(MAKECMDGOALS)))
@if [ -z "$(target_dir)" ]; then \
echo "Usage: make generate-proto <target_directory>"; \
exit 1; \
fi
protoc -I $(target_dir) --go_out=$(target_dir) --go-grpc_out=$(target_dir) $(target_dir)/*.proto


17 changes: 0 additions & 17 deletions tools/goctl/example/rpc/hello.proto

This file was deleted.

36 changes: 0 additions & 36 deletions tools/goctl/example/rpc/hello/client/greet/greet.go

This file was deleted.

6 changes: 0 additions & 6 deletions tools/goctl/example/rpc/hello/etc/hello.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions tools/goctl/example/rpc/hello/hello.go

This file was deleted.

7 changes: 0 additions & 7 deletions tools/goctl/example/rpc/hello/internal/config/config.go

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions tools/goctl/example/rpc/hello/internal/server/greet/greetserver.go

This file was deleted.

13 changes: 0 additions & 13 deletions tools/goctl/example/rpc/hello/internal/svc/servicecontext.go

This file was deleted.

Loading