|
package weixin
|
|
|
|
type AppSdk struct {
|
|
BaseSdk
|
|
}
|
|
|
|
func NewAppSdk(appid, secret string) *AppSdk {
|
|
return &AppSdk{
|
|
BaseSdk{
|
|
appid: appid,
|
|
secret: secret,
|
|
},
|
|
}
|
|
}
|
|
|
|
func (o *AppSdk) GetUserInfoByCode(code string) (*UserInfo, error) {
|
|
return o.getUserInfoByCode(code)
|
|
}
|