Extract logic into transcribe service
This commit is contained in:
@@ -16,3 +16,13 @@ type File struct {
|
||||
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(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user