-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goctl rpc generated the unexpected contents. #3688
Comments
The suffix |
This problem has been reported before, and it seems that it has not been changed. Now for the naming of this combination, the proto is currently written in the desired style. |
感觉这里有好几个问题 |
I feel like there are several issues here |
This issue is stale because it has been open for 30 days with no activity. |
goctl rpc生成的代码,其中logic分组名称没有按照style指定的样式生成。
例如:logic/minitest,我想要的是logic/mini_test的目录。
mini_core.proto文件
package mini_core;
option go_package="./mini_core";
message MiniTestReq{}
message MiniTestResp{}
service MiniTest {
rpc MiniTest(MiniTestReq) returns(MiniTestResp);
}
goctl rpc protoc mini_core.proto --go_out=./types --go-grpc_out=./types --zrpc_out=. --style=go_zero -m
├─internal
│ ├─config
│ │ config.go
│ │
│ ├─logic
│ │ │
│ │ └─minitest // 其中,我想要的结果是: mini_test
│ │ mini_test_logic.go
│ │
│ ├─server
│ │ │
│ │ └─minitest
│ │ mini_test_server.go
│ │
The text was updated successfully, but these errors were encountered: