fix return value
This commit is contained in:
parent
5abd91f947
commit
c4d41a9d4e
@ -68,9 +68,9 @@ func (f *form) Parse(ctx *gin.Context, receiver interface{}) error {
|
||||
return errors.New(ctx.ContentType() + " is not support")
|
||||
}
|
||||
} else {
|
||||
return errors.New(method + " is not support")
|
||||
return errors.New(method + " : request method is not support")
|
||||
}
|
||||
// 设置默认值
|
||||
defaults.SetDefaults(receiver)
|
||||
return errors.New(method + " : request method is not support")
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user