feat: 新增 models.go 定义基础模型和枚举类型,并创建 auth_service.go 文件。

This commit is contained in:
2026-01-31 13:47:06 +08:00
parent 4faacd5248
commit 71726ac933
2 changed files with 13 additions and 4 deletions

View File

@@ -711,6 +711,7 @@ type User struct {
Username string `gorm:"size:100" json:"username"`
Avatar string `gorm:"size:500" json:"avatar,omitempty"`
IsActive bool `gorm:"default:true" json:"is_active"`
HasPassword bool `gorm:"-" json:"has_password"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`