1. 小程序端

2. 视频优化
This commit is contained in:
李琦
2026-07-30 14:11:26 +08:00
parent 66be7a3ba0
commit 4f4153ee0e
32 changed files with 638 additions and 7720 deletions

View File

@@ -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"`
}