You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: query.go
    path of file: ./repos/wechat/miniprogram/urlscheme
    
    the code of the file until where you have to start completion: package urlscheme

import (
	"fmt"

	"github.com/silenceper/wechat/v2/util"
)

const (
	querySchemeURL = "https://api.weixin.qq.com/wxa/querysch
    
func (u *URLScheme) QueryScheme(querySchemeParams QueryScheme) (schemeInfo SchemeInfo, visitOpenid string, err error) {
	var accessToken string
	accessToken, err = u.GetAccessToken()
	if err != nil {
		return
	}

	urlStr := fmt.Sprintf(querySchemeURL, accessToken)
	var response []byte
	response, err = util.PostJSON(urlStr, querySchemeParams)
	if err != nil {
		return
	}

	// 使用通用方法返回错误
	var res resQueryScheme
	err = util.DecodeWithError(response, &res, "QueryScheme")
	if err != nil {
		return
	}

	return res.SchemeInfo, res.VisitOpenid, nil
}