first commit

This commit is contained in:
ytc1012
2025-11-18 18:08:48 +08:00
commit de90ad79ea
162 changed files with 28098 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
package model
import (
"time"
)
const (
Login = iota
Logout
)
type LoginHistory struct {
Id int `xorm:"id pk autoincr"`
UId int `xorm:"uid"`
CTime time.Time `xorm:"ctime"`
Ip string `xorm:"ip"`
State int8 `xorm:"state"`
Hardware string `xorm:"hardware"`
}
func (this *LoginHistory) TableName() string {
return "tb_login_history"
}
type LoginLast struct {
Id int `xorm:"id pk autoincr"`
UId int `xorm:"uid"`
LoginTime time.Time `xorm:"login_time"`
LogoutTime time.Time `xorm:"logout_time"`
Ip string `xorm:"ip"`
Session string `xorm:"session"`
IsLogout int8 `xorm:"is_logout"`
Hardware string `xorm:"hardware"`
}
func (this *LoginLast) TableName() string {
return "tb_login_last"
}