alpha
This commit is contained in:
19
store/store.go
Normal file
19
store/store.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"git.gm6.ru/icewind/seadoc/models"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type IVersionStorage interface {
|
||||
// Document
|
||||
CreateDocument(name string) (uuid.UUID, error)
|
||||
GetDocument(id uuid.UUID) (*models.Document, error)
|
||||
UpdateLatestVersion(docID, versionID uuid.UUID) error
|
||||
|
||||
// Version
|
||||
CreateVersion(v *models.Version) error
|
||||
GetLatestVersion(docID uuid.UUID) (*models.Version, error)
|
||||
GetVersionByID(id uuid.UUID) (*models.Version, error)
|
||||
GetParentVersion(v *models.Version) (*models.Version, error)
|
||||
}
|
||||
Reference in New Issue
Block a user