feat: tipos UploadedFile, StorageConfig, S3Config en infra (issue 0014 fase 1)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package infra
|
||||
|
||||
import "time"
|
||||
|
||||
// UploadedFile contiene la metadata de un archivo subido y almacenado en disco o S3.
|
||||
type UploadedFile struct {
|
||||
Filename string `json:"filename"` // nombre original del archivo
|
||||
StoredName string `json:"stored_name"` // nombre en disco (UUID-based)
|
||||
Size int64 `json:"size"` // tamano en bytes
|
||||
ContentType string `json:"content_type"` // MIME type detectado
|
||||
Path string `json:"path"` // ruta completa en disco (o key S3)
|
||||
CreatedAt time.Time `json:"created_at"` // timestamp de creacion
|
||||
}
|
||||
Reference in New Issue
Block a user