-
-
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 api go -api api.api -dir. --style go_zero cannot separate types.go problem #3757
Comments
The structures are global defines, so it have no package to separate files, and there has no plan to support it yet. |
@zhangforeverlu 你有计划支持types分组嘛,可以一起搞下,我其他的一些自己fork处理完了,现在就剩types分组这块了 |
@zhangforeverlu Do you have any plans to support type grouping? We can work on it together. I have forked some of the others and now only the type grouping is left. |
基于 go-zero 的 jzero 框架支持将 types.go 按照业务进行分组。同时支持一键生成代码。有兴趣的可以看看. |
The jzero(https://github.com/jzero-io/jzero) framework based on go-zero supports grouping types.go according to business. It also supports one-click code generation. Those who are interested can take a look. |
You can also refer to the implementation here https://github.com/jzero-io/jzero/blob/main/cmd/gen/genapi.go |
在线蹲作者。我也现在也魔改支持了,有链接方式嘛,可以加个微信什么的,组个交流群 |
Online squatting author. I also support Magic Change now. There is a link method. You can add WeChat or something and form a communication group. |
Since my project uses goctl api go -api command, I use the types.go file generated by go-zero to maintain the input parameters. Now due to the surge in business, types.go is getting bigger and bigger. I hope that the framework goctl api go command It can be supported, and types.go can be split into multiple files according to its own business for easy maintenance..
The text was updated successfully, but these errors were encountered: