修改websockt身份验证处理

This commit is contained in:
zyj
2025-09-11 18:15:45 +08:00
parent 4ec8dbfe7f
commit bdb17437bf
6 changed files with 124 additions and 7 deletions

20
models/profile.go Normal file
View File

@@ -0,0 +1,20 @@
package models
import "time"
type Profile struct {
ID int8 `gorm:"id;primary_key"`
UserId int8 `gorm:"user_id"`
Nickname string `gorm:"nickname"`
Email string `gorm:"email"`
Phone string `gorm:"phone"`
Status int `gorm:"status"`
LoginStatus int `gorm:"login_status"`
CreatedAt time.Time `gorm:"created_at;type:timestamptz"`
UpdatedAt time.Time `gorm:"updated_at;type:timestamptz"`
}
// 实现 TableName 方法指定表名
func (Profile) TableName() string {
return "gd_profile"
}