增加get类请求 body 解析

This commit is contained in:
2025-02-14 15:31:53 +08:00
parent 8d31a7f2ce
commit f51388c1d6
3 changed files with 77 additions and 62 deletions

View File

@ -126,3 +126,18 @@ func (psf parseStructField) Deprecated(structField reflect.StructField) bool {
}
return false
}
// Summary 摘要信息
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 15:15 2025/2/14
func (psf parseStructField) Summary(structField reflect.StructField) string {
defaultTagList := []string{define.TagSummary}
for _, tag := range defaultTagList {
if tagVal, exist := structField.Tag.Lookup(tag); exist && len(tagVal) > 0 {
return tagVal
}
}
return psf.GetParamName(structField)
}