12345678910111213141516171819 |
- package services
- import "github.com/silenceper/wechat/v2/miniprogram/auth"
- type UserInfo struct {
- }
- func WxLogin(wxSession auth.ResCode2Session) (token string, userId int, isBind bool, err error) {
- // openId := wxSession.OpenID
- // unionId := wxSession.UnionID
- // sessionKey := wxSession.SessionKey
- return
- }
- // GetWxUserItemByOpenId 通过openid获取用户信息
- func GetWxUserItemByOpenId(openid string) (userInfo UserInfo, err error) {
- return
- }
|