1 Star 0 Fork 0

h79/gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
baidu
dingtalk
feishu
filter
fxg
gdt
notify
ocean
result
taobao
token
weixin
access
app3
errors
iv
message
mini
security
data.go
get.go
mini.go
wxacode.go
oauth2
offia
response
session
template
urlconst
work
readme.md
token.go
wx.go
wx_test.go
.gitignore
LICENSE
Makefile
README.md
doc.go
error.md
go.mod
go.sum
version.go
克隆/下载
data.go 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 3年前 . 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"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.0.0

搜索帮助

371d5123 14472233 46e8bd33 14472233