package orm import "time" type BaseModel struct { CreatedAt time.Time `gorm:"autoCreateTime:milli"` UpdatedAt time.Time `gorm:"autoUpdateTime:milli"` DeletedAt *time.Time `gorm:"index"` // 使用指针类型支持软删除 CreatedBy string UpdatedBy string DeletedBy string }