https://github.com/gin-gonic/gin/blob/b57163a0e4339d7feb393ff430a454f4e448cf9c/binding/query.go#L15-L21

mapForm searches form struct tag, not query

Fixed version:

func (q queryBinding) Bind(req *http.Request, obj any) error {
    values := req.URL.Query()
    if err := mapFormByTag(obj, values, q.Name() ); err != nil {
        return err
    }
    return validate(obj)
}

Comment From: appleboy

fixed in #3236 @illiafox Thanks.

Comment From: appleboy

@illiafox Please open the new PR to fix the testing. #3236 can't pass the testing

Comment From: illiafox

I guess the issue can be closed as the query tag is not used anywhere