organize + graph
This commit is contained in:
14
models/utils/interfaces.go
Normal file
14
models/utils/interfaces.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package utils
|
||||
|
||||
type DBObject interface {
|
||||
GetName() string
|
||||
GetAccessor(driver Driver) Accessor
|
||||
}
|
||||
|
||||
type Accessor interface {
|
||||
SetLogger()
|
||||
LoadOne(id string) DBObject
|
||||
DeleteOne(id string) DBObject
|
||||
StoreOne(data DBObject) DBObject
|
||||
UpdateOne(set map[string]interface{}, id string) DBObject
|
||||
}
|
||||
Reference in New Issue
Block a user