weixin/clientapi/mp/auth/userinfo.go

19 lines
483 B
Go
Raw Normal View History

2021-11-10 01:44:51 +08:00
package auth
2021-10-28 00:59:04 +08:00
import (
"git.esin.io/lab/weixin/clientapi/request"
)
type Userinfo struct {
request.Error
2021-11-10 01:44:51 +08:00
OpenID string `json:"openid" gorm:"index"`
2021-10-28 00:59:04 +08:00
NickName string `json:"nickname"`
2021-11-10 01:44:51 +08:00
Sex int32 `json:"sex"`
2021-10-28 00:59:04 +08:00
Province string `json:"province"`
City string `json:"city"`
Country string `json:"country"`
HeadImgURL string `json:"headimgurl"`
2021-11-10 01:44:51 +08:00
Privilege []string `json:"privilege" gorm:"type:text[]"`
2021-10-28 00:59:04 +08:00
UnionID string `json:"unionid"`
}