package
Version:
v0.0.0-...-8e06e88
Opens a new window with list of versions in this module.
Published: Jun 18, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Code2Session struct {
Errcode int32 `json:"errcode"`
Errmsg string `json:"errmsg"`
Openid string `json:"openid"`
SessionKey string `json:"session_key"`
}
type WebLoginData struct {
Email string `json:"email" binding:"required"`
Password string `json:"password" binding:"required"`
}
type WebLoginResponseData struct {
ID interface{} `bson:"_id"`
Email string `bson:"email"`
}
type WebRegisterData struct {
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
}
type WebTestData struct {
Email string `json:"email" binding:"required"`
Password string `json:"password" binding:"required"`
}
type WebUser struct {
ID interface{} `bson:"_id,omitempty"`
Username string `bson:"username" binding:"required"`
Password string `bson:"password" binding:"required"`
Email string `bson:"email" binding:"required"`
}
type WxRequestData struct {
Code string `json:"code"`
NickName string `json:"nickName"`
Gender int `json:"gender"`
City string `json:"city"`
Province string `json:"province"`
Country string `json:"country"`
AvatarUrl string `json:"avatarUrl"`
}
type WxUser struct {
ID interface{} `bson:"_id,omitempty"`
OpenID string `bson:"wxOpenId" binding:"required"`
Nickname string `bson:"wxNickname"`
AvatarUrl string `bson:"wxAvatarUrl"`
Gender int `bson:"gender"`
City string `bson:"city"`
Province string `bson:"province"`
Country string `bson:"country"`
CreateDate time.Time `bson:"createDate"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.