mirror of
https://github.com/astaxie/beego.git
synced 2024-11-16 07:10:56 +00:00
16 lines
290 B
Go
16 lines
290 B
Go
package param
|
|
|
|
var InHeader MethodParamOption = func(p *MethodParam) {
|
|
p.location = header
|
|
}
|
|
|
|
var IsRequired MethodParamOption = func(p *MethodParam) {
|
|
p.required = true
|
|
}
|
|
|
|
func Default(defValue interface{}) MethodParamOption {
|
|
return func(p *MethodParam) {
|
|
p.defValue = defValue
|
|
}
|
|
}
|