24 lines
851 B
Go
24 lines
851 B
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
type UserDetail struct {
|
|
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
|
RealName string `gorm:"column:real_name" json:"real_name"`
|
|
IdCard string `gorm:"column:id_card" json:"id_card"`
|
|
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
type UserDetailCreate struct {
|
|
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
|
RealName string `gorm:"column:real_name" json:"real_name"`
|
|
IdCard string `gorm:"column:id_card" json:"id_card"`
|
|
}
|
|
|
|
type ProfileDetail struct {
|
|
RealName string `json:"real_name"`
|
|
}
|