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

官方文档中关于API语法的描述有误 #134

Open
swt12138 opened this issue Jul 26, 2024 · 0 comments
Open

官方文档中关于API语法的描述有误 #134

swt12138 opened this issue Jul 26, 2024 · 0 comments

Comments

@swt12138
Copy link

原文为
在 api 描述语言中,我们规定将所有 service 语法块声明的 HTTP 服务信息都放在 main api文件中,抽象结构体放在其他 api 文件中,然后在 main api 文件中引入其他 api 文件,这样可以让 main api 文件更加简洁,易于维护,而被引入的 api 文件中不允许出现 service 语法块,否则会报错。
但是实际上,被引入的api文件中可以出现service 语法块,并不会在goctl时报错,但是不能出现新命名的service语法块

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant