Make interfaces abstract

This commit is contained in:
Martin Pander
2022-11-08 09:22:14 +01:00
parent c3de3dd21f
commit 8a78711727
6 changed files with 29 additions and 27 deletions

View File

@ -2,11 +2,10 @@ package database
import (
"time"
"github.com/moustachioed/dash/backend/database/models"
// "github.com/moustachioed/dash/backend/database/models"
)
type Database interface {
WriteJournalEntry(models.Journal) error
GetJournalEntryForDate(time.Time) (models.Journal, error)
WriteJournalEntry(interface{}) error
GetJournalEntryForDate(time.Time) (interface{}, error)
}