This commit is contained in:
2026-07-18 10:52:32 +08:00
parent 2dcafae465
commit b5ef58f434
61 changed files with 1274 additions and 2142 deletions

View File

@@ -6,7 +6,7 @@ import "time"
// User 用户模型
// 对应数据库表: fs_user
type User struct {
ID uint64 `json:"id" gorm:"primaryKey;autoIncrement"`
ID uint64 `json:"id" gorm:"primaryKey"`
Username string `json:"username" gorm:"uniqueIndex;size:64;not null"`
Password string `json:"-" gorm:"size:256;not null"` // json:"-" 防止密码泄露
Email string `json:"email" gorm:"size:128"`