oc-lib/models/utils/interfaces.go

15 lines
293 B
Go
Raw Normal View History

2024-07-18 11:51:12 +02:00
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
}