Implement rough architecture
This commit is contained in:
12
backend/database/database.go
Normal file
12
backend/database/database.go
Normal file
@ -0,0 +1,12 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/moustachioed/dash/backend/database/models"
|
||||
)
|
||||
|
||||
type Database interface {
|
||||
WriteJournalEntry(dbmodel models.Journal) error
|
||||
GetJournalEntryForDate(date time.Time) (models.Journal, error)
|
||||
}
|
||||
Reference in New Issue
Block a user