Files
transcriber/internal/entity/file.go

29 lines
401 B
Go

package entity
import (
"time"
)
const (
StorageLocal = "local"
StorageS3 = "s3"
)
type File struct {
Id string
Storage string
FileName string
Size int64
CreatedAt time.Time
}
func (f *File) CopyWithStorage(newId, storage string) *File {
return &File{
Id: newId,
Storage: storage,
FileName: f.FileName,
Size: f.Size,
CreatedAt: time.Now(),
}
}