36 lines
1.7 KiB
Go
36 lines
1.7 KiB
Go
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"`
|
|
}
|
|
|
|
type AdminUserListItem struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Avatar string `json:"avatar"`
|
|
Mobile string `json:"mobile"`
|
|
Gender uint32 `json:"gender"`
|
|
GenderText string `json:"gender_text"`
|
|
Birthday string `json:"birthday"`
|
|
Age string `json:"age"`
|
|
Status int `json:"status"`
|
|
DetectionNumber int `json:"detection_number"`
|
|
CreatedAt utils.CustomTime `json:"created_at"`
|
|
}
|