16 lines
354 B
Go
16 lines
354 B
Go
package mapping
|
|
|
|
import (
|
|
"time"
|
|
// api "github.com/moustachioed/dash/backend/dashapi"
|
|
// db "github.com/moustachioed/dash/backend/database/models"
|
|
)
|
|
|
|
type Mapper interface {
|
|
JournalApiToDb(api interface{}) (db interface{})
|
|
JournalDbToApi(db interface{}) (api interface{})
|
|
|
|
StringToDate(string) (time.Time, error)
|
|
DateToString(time.Time) string
|
|
}
|