Files
lckt-server/model/user/login_log.go
2025-09-08 01:48:36 +08:00

23 lines
762 B
Go

package user
import "git.echol.cn/loser/lckt/global"
type LoginLog struct {
global.GVA_MODEL
UserId uint `json:"user_id" gorm:"comment:用户ID;index"`
UserName string `json:"user_name" gorm:"comment:用户登录名"`
Phone string `json:"phone" gorm:"comment:用户手机号"`
Ip string `json:"ip" gorm:"comment:登录IP"`
Address string `json:"address" gorm:"comment:登录地址"`
UserAgent string `json:"user_agent" gorm:"comment:用户代理"`
// 登录设备
Device string `json:"device" gorm:"comment:登录设备"`
// 登录方式
Mode string `json:"mode" gorm:"comment:登录方式"`
LoginTime string `json:"login_time" gorm:"comment:登录时间"`
}
func (LoginLog) TableName() string {
return "user_login_log"
}