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,19 @@
package model
import "time"
type User struct {
UId int `xorm:"uid pk autoincr"`
Username string `xorm:"username" validate:"min=4,max=20,regexp=^[a-zA-Z0-9_]*$"`
Passcode string `xorm:"passcode"`
Passwd string `xorm:"passwd"`
Hardware string `xorm:"hardware"`
Status int `xorm:"status"`
Ctime time.Time `xorm:"ctime"`
Mtime time.Time `xorm:"mtime"`
IsOnline bool `xorm:"-"`
}
func (this *User) TableName() string {
return "tb_user_info"
}