尝试登录逻辑

This commit is contained in:
des
2026-01-19 00:07:20 +08:00
parent c61fb947e7
commit 2d65afdf33
16 changed files with 713 additions and 66 deletions

View File

@@ -0,0 +1,26 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
)
const TableNameUser = "users"
// User mapped from table <users>
type User struct {
ID int64 `gorm:"column:id;primaryKey;comment:用户ID" json:"id"` // 用户ID
CreateTime time.Time `gorm:"column:create_time;not null" json:"create_time"`
LastUpdateTime time.Time `gorm:"column:last_update_time;not null" json:"last_update_time"`
Name string `gorm:"column:name;not null;comment:用户在系统内的名称" json:"name"` // 用户在系统内的名称
Account string `gorm:"column:account;not null;comment:用户登录凭证" json:"account"` // 用户登录凭证
Passwd string `gorm:"column:passwd;not null;comment:用户登录密钥" json:"passwd"` // 用户登录密钥
}
// TableName User's table name
func (*User) TableName() string {
return TableNameUser
}