解析字段描述, 支持 ### 代替 `

This commit is contained in:
白茶清欢 2025-02-18 21:26:20 +08:00
parent b8a7f0585a
commit 339b7aca77

View File

@ -54,7 +54,7 @@ func (psf parseStructFieldTag) GetParamDesc(structField reflect.StructField) str
for _, tag := range descTagList {
tagVal := structField.Tag.Get(tag)
if tagVal != "" {
return tagVal
return strings.ReplaceAll(tagVal, "###", "`")
}
}
// 没有显示的设置参数描述, 则使用参数名作为参数描述