Make interfaces abstract
This commit is contained in:
@ -2,14 +2,13 @@ package mapping
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
api "github.com/moustachioed/dash/backend/dashapi"
|
||||
db "github.com/moustachioed/dash/backend/database/models"
|
||||
// api "github.com/moustachioed/dash/backend/dashapi"
|
||||
// db "github.com/moustachioed/dash/backend/database/models"
|
||||
)
|
||||
|
||||
type Mapper interface {
|
||||
JournalApiToDb(api.JournalEntry) db.Journal
|
||||
JournalDbToApi(db.Journal) api.JournalEntry
|
||||
JournalApiToDb(api interface{}) (db interface{})
|
||||
JournalDbToApi(db interface{}) (api interface{})
|
||||
|
||||
StringToDate(string) (time.Time, error)
|
||||
DateToString(time.Time) string
|
||||
|
||||
Reference in New Issue
Block a user