Implement rough architecture
This commit is contained in:
11
backend/mapping/mapper.go
Normal file
11
backend/mapping/mapper.go
Normal file
@ -0,0 +1,11 @@
|
||||
package mapping
|
||||
|
||||
import (
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user