mirror of
https://github.com/astaxie/beego.git
synced 2025-07-05 03:30:18 +00:00
location=>paramType
This commit is contained in:
@ -38,7 +38,7 @@ func convertParam(param *MethodParam, paramType reflect.Type, ctx *beecontext.Co
|
||||
}
|
||||
|
||||
func getParamValue(param *MethodParam, ctx *beecontext.Context) string {
|
||||
switch param.location {
|
||||
switch param.in {
|
||||
case body:
|
||||
return string(ctx.Input.RequestBody)
|
||||
case header:
|
||||
|
Reference in New Issue
Block a user