1 Star 0 Fork 0

h79 / gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
data.go 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2022-08-21 22:44 . init
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"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.8.103

搜索帮助

344bd9b3 5694891 D2dac590 5694891