1. 小程序端
2. 视频优化
This commit is contained in:
@@ -16,6 +16,7 @@ type User struct {
|
||||
Phone string `json:"phone" gorm:"column:phone"`
|
||||
Wechat string `json:"wechat" gorm:"column:wechat"`
|
||||
WechatQrcode string `json:"wechatQrcode" gorm:"column:wechat_qrcode"`
|
||||
WxOpenID string `json:"-" gorm:"column:wx_openid;uniqueIndex"`
|
||||
Password string `json:"password,omitempty" gorm:"-"` // Virtual field for input
|
||||
PasswordHash string `json:"-" gorm:"column:password_hash"`
|
||||
RoleID uint `json:"roleId" gorm:"column:role_id"`
|
||||
@@ -109,3 +110,8 @@ type LoginResponse struct {
|
||||
User UserResponse `json:"user"`
|
||||
Expire int64 `json:"expire"`
|
||||
}
|
||||
|
||||
// WxLoginRequest 微信小程序登录
|
||||
type WxLoginRequest struct {
|
||||
Code string `json:"code" binding:"required"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user