feat: 新增 models.go 定义基础模型和枚举类型,并创建 auth_service.go 文件。
This commit is contained in:
@@ -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:"-"`
|
||||
|
||||
Reference in New Issue
Block a user