Introduced interfaces for all repositories, completely isolating the persistence layer from the repositories usage and specification
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package domain
|
||||
|
||||
type BaseRepository interface {
|
||||
NewId(fields ...string) string
|
||||
CountAll() (int, error)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user