mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-12 09:22:27 +08:00
chore: add api
This commit is contained in:
@@ -13,9 +13,9 @@ type Account struct {
|
||||
PhoneN string `gorm:"column:phone_n;not null" bson:"phone_n"` // 手机号
|
||||
Address string `gorm:"column:address;not null" bson:"address"` // 地址信息
|
||||
|
||||
LogoutAt time.Time `gorm:"column:logout_at;default:null" bson:"logout_at"` // 登出时间
|
||||
LoginIP string `gorm:"column:login_ip;default:null" bson:"login_ip"` // 最近登录IP
|
||||
LoginUA string `gorm:"column:login_ua;default:null" bson:"login_ua"` // 最近登录IP
|
||||
LoginAt time.Time `gorm:"column:login_at;default:now()" bson:"login_at"` // 最近登录时间
|
||||
CreatedAt time.Time `gorm:"column:creatd_at;default:now()" bson:"created_at"` // 创建时间
|
||||
LogoutAt time.Time `gorm:"column:logout_at;default:null" bson:"logout_at"` // 登出时间
|
||||
LoginIP string `gorm:"column:login_ip;default:null" bson:"login_ip"` // 最近登录IP
|
||||
LoginUA string `gorm:"column:login_ua;default:null" bson:"login_ua"` // 最近登录IP
|
||||
LoginAt time.Time `gorm:"column:login_at;default:now()" bson:"login_at"` // 最近登录时间
|
||||
CreatedAt time.Time `gorm:"column:created_at;default:now()" bson:"created_at"` // 创建时间
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user