优化GET类请求文档生成

This commit is contained in:
2025-02-14 18:22:53 +08:00
parent f51388c1d6
commit c9604091f2
3 changed files with 129 additions and 64 deletions

View File

@ -139,5 +139,9 @@ func (psf parseStructField) Summary(structField reflect.StructField) string {
return tagVal
}
}
return psf.GetParamName(structField)
paramName := psf.GetParamName(structField)
if paramName == "-" {
return ""
}
return paramName
}