feat: analysis user auth and ws

This commit is contained in:
zzw
2026-10-15 09:23:07 +08:00
parent 6fa185003d
commit a65b6d2803
102 changed files with 4966 additions and 786 deletions
+21
View File
@@ -0,0 +1,21 @@
package dao
import "lone-services/pkg/utils"
type User struct {
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
FacePath string `gorm:"column:face_path" json:"face_path"`
IsRegistered uint8 `gorm:"column:is_registered" json:"is_registered"`
IsFaceVerified uint8 `gorm:"column:is_face_verified" json:"is_face_verified"`
IsProfileCompleted uint8 `gorm:"column:is_profile_completed" json:"is_profile_completed"`
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
}
type UserCreate struct {
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
FacePath string `gorm:"column:face_path" json:"face_path"`
IsRegistered uint8 `gorm:"column:is_registered" json:"is_registered"`
IsFaceVerified uint8 `gorm:"column:is_face_verified" json:"is_face_verified"`
IsProfileCompleted uint8 `gorm:"column:is_profile_completed" json:"is_profile_completed"`
}