wip
This commit is contained in:
33
web/models/document.go
Normal file
33
web/models/document.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"reichard.io/antholume/metadata"
|
||||
)
|
||||
|
||||
type Document struct {
|
||||
ID string
|
||||
ISBN10 string
|
||||
ISBN13 string
|
||||
Title string
|
||||
Author string
|
||||
Description string
|
||||
Percentage float64
|
||||
WPM int64
|
||||
Words *int64
|
||||
TotalTimeRead time.Duration
|
||||
TimePerPercent time.Duration
|
||||
HasFile bool
|
||||
}
|
||||
|
||||
type DocumentMetadata struct {
|
||||
SourceID string
|
||||
ISBN10 string
|
||||
ISBN13 string
|
||||
Title string
|
||||
Author string
|
||||
Description string
|
||||
Source metadata.Source
|
||||
Error *string
|
||||
}
|
||||
Reference in New Issue
Block a user