mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 16:00:19 +00:00
defValue -> defaultValue
This commit is contained in:
@ -28,10 +28,10 @@ var InBody MethodParamOption = func(p *MethodParam) {
|
||||
}
|
||||
|
||||
// Default provides a default value for the http param
|
||||
func Default(defValue interface{}) MethodParamOption {
|
||||
func Default(defaultValue interface{}) MethodParamOption {
|
||||
return func(p *MethodParam) {
|
||||
if defValue != nil {
|
||||
p.defValue = fmt.Sprint(defValue)
|
||||
if defaultValue != nil {
|
||||
p.defaultValue = fmt.Sprint(defaultValue)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user