This commit is contained in:
Hericium-sys
2026-04-25 13:26:02 +08:00
commit 62b87c6002
29 changed files with 1884 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
package models
// User 最小用户模型占位
type User struct {
ID uint `gorm:"primaryKey" json:"id"`
Username string `gorm:"size:64;not null;uniqueIndex" json:"username"`
Password string `gorm:"size:255;not null" json:"-"`
}
// TableName 返回表名
func (User) TableName() string {
return "users"
}