cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.12k stars 496 forks source link

关于hz代码生成与swagger的生成交互问题 #1084

Closed ponecrazy closed 5 months ago

ponecrazy commented 5 months ago
  1. 在代码生成Handler构建Swagger doc的时候发现在给定的Handler结构体无法取到service相关的数据,目的是想要将service name引入作为tags,目前有什么办法实现吗?

  2. 走代码生成的逻辑无法给handler构建Swagger doc时提供description,目前唯一找到的办法只能走description.markdown;另外看到HttpMethod结构体中有Annotations字段但是被注释掉了;这个有什么最佳实践吗?

github-actions[bot] commented 5 months ago

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.