mirror of
https://github.com/stashapp/stash-box.git
synced 2026-02-05 15:55:21 -06:00
14 lines
280 B
Go
14 lines
280 B
Go
package models
|
|
|
|
import (
|
|
"github.com/gofrs/uuid"
|
|
)
|
|
|
|
type DraftRepo interface {
|
|
Create(newEdit Draft) (*Draft, error)
|
|
Destroy(id uuid.UUID) error
|
|
Find(id uuid.UUID) (*Draft, error)
|
|
FindByUser(userID uuid.UUID) ([]*Draft, error)
|
|
FindExpired(timeLimit int) ([]*Draft, error)
|
|
}
|