解析字段描述, 支持 ### 代替 `
This commit is contained in:
parent
b8a7f0585a
commit
339b7aca77
@ -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, "###", "`")
|
||||
}
|
||||
}
|
||||
// 没有显示的设置参数描述, 则使用参数名作为参数描述
|
||||
|
Loading…
x
Reference in New Issue
Block a user