27 lines
828 B
Go
27 lines
828 B
Go
package usermodel
|
|
|
|
type LoginM struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
Username string `json:"username" binding:"required"`
|
|
Password string `json:"password" binding:"required"`
|
|
Email string `json:"email" binding:"required"`
|
|
}
|
|
type WxLoginM struct {
|
|
EncryptedData string `json:"encryptedData"`
|
|
Iv string `json:"iv"`
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
type WxLoginResponse struct {
|
|
OpenID string `json:"openid"` // 用户唯一标识
|
|
SessionKey string `json:"session_key"` // 会话密钥
|
|
UnionID string `json:"unionid"` // 用户在开放平台的唯一标识符(可选)
|
|
ErrCode int `json:"errcode"` // 错误码
|
|
ErrMsg string `json:"errmsg"` // 错误信息
|
|
}
|