resource as resource named

This commit is contained in:
mr
2024-07-19 10:54:58 +02:00
parent 218714683b
commit 2a9a784ec1
28 changed files with 381 additions and 284 deletions

View File

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