1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-05 03:30:18 +00:00

location=>paramType

This commit is contained in:
eyalpost
2017-05-12 09:28:46 +03:00
parent b6a35a8944
commit 0ac2e47162
5 changed files with 10 additions and 10 deletions

View File

@ -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: