Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TimeLayout 时间格式化
TimeLayout = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Member ¶
type Member struct { ID int `json:"id"` OpenID string `json:"openid"` Name string `json:"name"` Tel string `json:"tel"` Email string `json:"email"` Edu string `json:"edu"` WechatAuth string `json:"wechatauth"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` // contains filtered or unexported fields }
Member 会员信息
func (*Member) WechatAuthObj ¶
func (member *Member) WechatAuthObj() (result *WechatAuth)
WechatAuthObj 获取微信授权信息
type WechatAuth ¶
type WechatAuth struct { OpenID string `json:"openid"` Nickname string `json:"nickname"` Sex int `json:"sex"` Province string `json:"province"` City string `json:"city"` Country string `json:"country"` HeadImgURL string `json:"headimgurl"` Privilege []string `json:"privilege"` UnionID string `json:"unionid"` }
WechatAuth 微信授权信息
Click to show internal directories.
Click to hide internal directories.