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: authorize.go
    path of file: ./repos/alipay
    
    the code of the file until where you have to start completion: package alipay

import (
	"net/url"
	"strings"
)

// PublicAppAuthorize 用户信息授权接口(网站支付宝登录快速接入) https://docs.open.alipay.com/289/105656#s3 (https://docs.open.alipay.com/263/105809)
func (c *Client) PublicAppAuthorize(s
    
func (c *Client) AccountAuth(param AccountAuth) (result string, err error) {
	var values = url.Values{}
	values.Add("app_id", c.appId)
	values.Add("method", param.APIName())

	var ps = param.Params()
	if ps != nil {
		for key, value := range ps {
			values.Add(key, value)
		}
	}

	values.Add("sign_type", kSignTypeRSA2)

	signature, err := c.sign(values)
	if err != nil {
		return "", err
	}
	values.Add("sign", signature)

	return values.Encode(), err
}