apropriate db

This commit is contained in:
mr
2024-07-18 16:46:54 +02:00
parent d273fdc57f
commit 3e9eae007b
17 changed files with 92 additions and 93 deletions

View File

@@ -1,5 +1,7 @@
package utils
import "cloud.o-forge.io/core/oc-lib/models/resources"
type DBObject interface {
GetName() string
Deserialize(j map[string]interface{}) DBObject
@@ -7,7 +9,8 @@ type DBObject interface {
}
type Accessor interface {
SetLogger()
SetLogger(t resources.ResourceType)
GetType() string
LoadOne(id string) (DBObject, error)
DeleteOne(id string) (DBObject, error)
StoreOne(data DBObject) (DBObject, error)