Skip to content
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

use 'gf gen ctrl' to support“type()” #3063

Closed
whileW opened this issue Oct 19, 2023 · 1 comment · Fixed by #3115
Closed

use 'gf gen ctrl' to support“type()” #3063

whileW opened this issue Oct 19, 2023 · 1 comment · Fixed by #3115

Comments

@whileW
Copy link

whileW commented Oct 19, 2023

gf gen ctrl 是否可以支持一下,下面这种语法
同一个api的req和res用type括起来是不是更清晰一点?

type (
	CreateReq struct {
		g.Meta `path:"/administrator/v1/create" method:"post" tags:"AdministratorService" summary:"Create a new administrator"`
	}
	CreateRes struct{}
)
@github-actions
Copy link

Hello @whileW. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it!
你好 @whileW。我们喜欢您的提案/反馈,并希望您或其他社区成员通过拉取请求做出贡献。我们提前感谢您的贡献,并期待对其进行审查。

oldme-git added a commit to oldme-git/gf that referenced this issue Oct 31, 2023
oldme-git added a commit to oldme-git/gf that referenced this issue Oct 31, 2023
@hailaz hailaz added the CLI about gf cli label Nov 1, 2023
oldme-git added a commit to oldme-git/gf that referenced this issue Nov 1, 2023
gqcn pushed a commit that referenced this issue Nov 6, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants