Refactoring: clean architecture project structure
This commit is contained in:
17
internal/entity/file.go
Normal file
17
internal/entity/file.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
StorageLocal = "local"
|
||||
StorageS3 = "s3"
|
||||
)
|
||||
|
||||
type File struct {
|
||||
Id string
|
||||
Storage string
|
||||
Size int64
|
||||
CreatedAt time.Time
|
||||
}
|
23
internal/entity/job.go
Normal file
23
internal/entity/job.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type TranscribeJob struct {
|
||||
Id string
|
||||
State string
|
||||
FileID *string
|
||||
IsError bool
|
||||
ErrorText *string
|
||||
Worker *string
|
||||
AcquiredAt *time.Time
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
const (
|
||||
StateCreated = "created"
|
||||
StateConverted = "converted"
|
||||
StateUploaded = "uploaded"
|
||||
StatusFailed = "failed"
|
||||
)
|
Reference in New Issue
Block a user