Implement Journal read/write
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package mapping
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
api "github.com/moustachioed/dash/backend/dashapi"
|
||||
db "github.com/moustachioed/dash/backend/database/models"
|
||||
)
|
||||
@ -8,4 +10,7 @@ import (
|
||||
type Mapper interface {
|
||||
JournalApiToDb(api.JournalEntry) db.Journal
|
||||
JournalDbToApi(db.Journal) api.JournalEntry
|
||||
|
||||
StringToDate(string) (time.Time, error)
|
||||
DateToString(time.Time) string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user