Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppID string // AppID appid AesKey string // AesKey aes key PrivatePath string // PrivatePath private path PublicPath string // PublicPath public path )
Functions ¶
This section is empty.
Types ¶
type Next ¶ added in v1.1.2
type Next struct { UserID string `json:"user_id,omitempty"` // 是 支付宝用户的唯一userId AccessToken string `json:"access_token,omitempty"` // 是 访问令牌。通过该令牌调用需要授权类接口 ExpiresIn int32 `json:"expires_in,omitempty"` // 是 访问令牌的有效时间,单位是秒。 RefreshToken string `json:"refresh_token,omitempty"` // 是 刷新令牌。通过该令牌可以刷新access_token ReExpiresIn int32 `json:"re_expires_in,omitempty"` // 是 刷新令牌的有效时间,单位是秒。 Moblie string `json:"mobile"` // 手机号 Response string `json:"response,omitempty"` // 否 内容 QrCodeURL string `json:"qr_code_url,omitempty"` // 二维码图片链接地址 }
Next next
type QR ¶ added in v1.1.2
type QR struct { URLParam string `json:"url_param,omitempty"` // 小程序中能访问到的页面路径。 QueryParam string `json:"query_param,omitempty"` // 小程序的启动参数,打开小程序的query,在小程序onLaunch的方法中获取。 Describe int `json:"describe,omitempty"` // 对应的二维码描述。 }
QR qr
type Request ¶
type Request struct { AppID string `json:"app_id,omitempty" url:"app_id,omitempty"` // 是 应用ID Method string `json:"method,omitempty" url:"method,omitempty"` // 是 接口名称 Format string `json:"format,omitempty" url:"format,omitempty"` // 否 JSON Charset string `json:"charset,omitempty" url:"charset,omitempty"` // 是 utf-8 SignType string `json:"sign_type,omitempty" url:"sign_type,omitempty"` // 是 RSA2 Sign string `json:"sign,omitempty" url:"sign,omitempty"` // 是 签名 TimeStamp string `json:"timestamp,omitempty" url:"timestamp,omitempty"` // 是 时间 Version string `json:"version,omitempty" url:"version,omitempty"` // 是 1.0 AuthToken string `json:"auth_token,omitempty" url:"auth_token,omitempty"` // 是 用户授权 AppAuthToken string `json:"app_auth_token,omitempty" url:"app_auth_token,omitempty"` // 否 应用授权 GrantType string `json:"grant_type,omitempty" url:"grant_type,omitempty"` // 是 值为authorization_code时,代表用code换取;值为refresh_token时,代表用refresh_token换取 Code string `json:"code,omitempty" url:"code,omitempty"` // 否 授权码 RefreshToken string `json:"refresh_token,omitempty" url:"refresh_token,omitempty"` // 否 刷新令牌 BizContent string `json:"biz_content,omitempty" url:"biz_content,omitempty"` // 请求参数的集合 }
Request request
type Response ¶
type Response struct { Code string `json:"code,omitempty"` // 是 网关返回码 Msg string `json:"msg,omitempty"` // 是 网关返回码描述 SubCode string `json:"sub_code,omitempty"` // 否 业务返回码 SubMsg string `json:"sub_msg,omitempty"` // 是 业务返回码描述 Sign string `json:"sign,omitempty"` // 是 签名 *Next }
Response response
type Result ¶
type Result struct { AlipaySystemOauthTokenResponse *Response `json:"alipay_system_oauth_token_response,omitempty"` // 内容 AlipayOpenAppQrcodeCreateResponse *Response `json:"alipay_open_app_qrcode_create_response,omitempty"` // 内容 Sign string `json:"sign,omitempty"` // 签名 }
Result result
type User ¶
type User struct { UserID string `json:"user_id,omitempty"` // 是 用户ID NickName string `json:"nickName,omitempty"` // 是 用户暱称 Avatar string `json:"avatar,omitempty"` // 是 用户头像 Gender string `json:"gender,omitempty"` // 否 用户性别 CountryCode string `json:"countryCode,omitempty"` // 国家编码 Province string `json:"province,omitempty"` // 是 省份 City string `json:"city,omitempty"` // 是 城市 }
User user
Click to show internal directories.
Click to hide internal directories.