Fix logs and recognition format

This commit is contained in:
2025-08-12 13:57:41 +03:00
parent 6783b7621e
commit a856900504
4 changed files with 41 additions and 10 deletions

View File

@@ -1,11 +1,21 @@
package repo
import (
"fmt"
"time"
"git.vakhrushev.me/av/transcriber/internal/entity"
)
type JobNotFoundError struct {
State string
Message string
}
func (e *JobNotFoundError) Error() string {
return fmt.Sprintf("%s - %s", e.State, e.Message)
}
type FileRepository interface {
Create(file *entity.File) error
GetByID(id string) (*entity.File, error)