midway
midway copied to clipboard
swagger中,ApiBody,ApiQuery,ApiParam用法拓展.
目前ApiBody,ApiQuery,ApiParam必须配合@Body,@Query,@Param才有效果,请教下,单独使用ApiBody,ApiQuery,ApiParam,可否也支持下类型获取,如图所示.
这样不支持,拿不到参数哦
这里是拿不到函数的参数,但感觉应该可以根据metaForMethods扩展下.
大概思路就是没有WEB_ROUTER_PARAM_KEY的时候再添加下metaForMethods的类型参数,老哥帮忙看看能不能实现?
这样不支持,拿不到参数哦
大概思路就是没有WEB_ROUTER_PARAM_KEY的时候再添加下metaForMethods的类型参数,老哥帮忙看看能不能实现?
这样不支持,拿不到参数哦
组件实现上面是独立的,只用 swagger 的装饰器,router 是不会执行相关逻辑的。
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.