mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
@ -48,10 +48,6 @@ func StructType(object interface{}) (*Type, error) {
|
||||
}
|
||||
|
||||
exitLoop:
|
||||
for reflectKind == reflect.Ptr {
|
||||
reflectValue = reflectValue.Elem()
|
||||
reflectKind = reflectValue.Kind()
|
||||
}
|
||||
if reflectKind != reflect.Struct {
|
||||
return nil, errors.New(
|
||||
fmt.Sprintf(
|
||||
|
||||
@ -78,12 +78,7 @@ func (oai *OpenApiV3) addPath(in addPathInput) error {
|
||||
} else {
|
||||
outputObject = reflect.New(reflectType.Out(0)).Elem()
|
||||
}
|
||||
for inputObject.Kind() == reflect.Ptr {
|
||||
inputObject = inputObject.Elem()
|
||||
}
|
||||
for outputObject.Kind() == reflect.Ptr {
|
||||
outputObject = outputObject.Elem()
|
||||
}
|
||||
|
||||
var (
|
||||
path = Path{}
|
||||
inputMetaMap = gmeta.Data(inputObject.Interface())
|
||||
|
||||
Reference in New Issue
Block a user