Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
增加了多命名空间情况下的 swager 生成
在生成 swagger.json 时也同时修改 swagger/index.html,使其动态根据多命名空间引入多个 swagger.json 文件
生成的 swagger.json 文件路径:swagger/{namespace}/swagger.json
如何使用:
1、修改 router.go 文档定义
2、执行
bee run -gendoc=true -downdoc=true
3、打开swagger地址,你将看到你想要的结果
demo地址: https://github.com/lenmx/beego_multi_version_swagger_demo