Skip to content

Commit

Permalink
* check query binding
Browse files Browse the repository at this point in the history
  • Loading branch information
qishiyao committed Sep 8, 2022
1 parent a9e9e7c commit a5fe7ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/internal/app/router/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ func LookupApp(c *gin.Context, q interface{}) (context.Context, *instance.Instan
if err = c.ShouldBindJSON(q); err != nil {
return ctx, nil, http.StatusBadRequest, err
}
}

if err = c.ShouldBindQuery(q); err != nil {
return ctx, nil, http.StatusBadRequest, err
} else {
logger.Debug("bind get query")
if err = c.ShouldBindQuery(q); err != nil {
return ctx, nil, http.StatusBadRequest, err
}
}

logger.Debug("parse app model")
Expand Down

0 comments on commit a5fe7ec

Please sign in to comment.