更新用户登录功能
This commit is contained in:
26
model/usermodel/loginmodel.go
Normal file
26
model/usermodel/loginmodel.go
Normal file
@@ -0,0 +1,26 @@
|
||||
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"` // 错误信息
|
||||
}
|
||||
Reference in New Issue
Block a user