gosdk/weixin/app_sdk.go

19 lines
277 B
Go
Raw Normal View History

2024-10-21 17:27:46 +08:00
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)
}