代码拉取完成,页面将自动刷新
package mini
type SessionKey struct {
SessionKey string `json:"session_key,omitempty"`
OpenId string `json:"openid,omitempty"` //每个应用有对应的openid
UnionId string `json:"unionid,omitempty"` //开发者最好保存用户unionID信息,以便以后在不同应用中进行用户信息互通。
AppId string `json:"-"`
}
type WxaQrcReq struct {
Scene string `json:"scene"`
Page string `json:"page,omitempty"`
}
type User struct {
OpenId string `json:"openId"`
UnionId string `json:"unionId,omitempty"` //开发者最好保存用户unionID信息,以便以后在不同应用中进行用户信息互通。
Nick string `json:"nickName,omitempty"`
Gender int8 `json:"gender,omitempty"`
AvatarUrl string `json:"avatarUrl,omitempty"`
Province string `json:"province,omitempty"`
City string `json:"city,omitempty"`
Country string `json:"country,omitempty"`
Language string `json:"language,omitempty"`
Privilege []string `json:"privilege,omitempty"`
AppId string `json:"-"`
}
// implement common.data.Base interface
func (u *User) DataType() string {
return "mini.user"
}
type Phone struct {
User
//用户绑定的手机号(国外手机号会有区号)
PhoneNumber string `json:"phoneNumber,omitempty"`
//没有区号的手机号
PurePhoneNumber string `json:"purePhoneNumber,omitempty"`
//区号
CountryCode string `json:"countryCode,omitempty"`
}
// implement common.data.Base interface
func (p *Phone) DataType() string {
return "mini.phone"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。