gosdk/weixin/app_sdk.go

19 lines
277 B
Go

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)
}