stash-box/pkg/models/draft.go
2022-01-18 23:26:31 +01:00

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)
}