增加get类请求 body 解析
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user