Make interfaces abstract
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user