user.go 457 B

12345678910111213141516171819
  1. package services
  2. import "github.com/silenceper/wechat/v2/miniprogram/auth"
  3. type UserInfo struct {
  4. }
  5. func WxLogin(wxSession auth.ResCode2Session) (token string, userId int, isBind bool, err error) {
  6. // openId := wxSession.OpenID
  7. // unionId := wxSession.UnionID
  8. // sessionKey := wxSession.SessionKey
  9. return
  10. }
  11. // GetWxUserItemByOpenId 通过openid获取用户信息
  12. func GetWxUserItemByOpenId(openid string) (userInfo UserInfo, err error) {
  13. return
  14. }