oc-lib/models/utils/interfaces.go
2024-07-18 11:51:12 +02:00

15 lines
293 B
Go

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
}