test copy

This commit is contained in:
mr
2024-07-19 13:41:10 +02:00
parent 3f9814e649
commit e89b5aae84
14 changed files with 38 additions and 17 deletions

View File

@@ -3,7 +3,6 @@ package utils
type DBObject interface {
GenerateID()
GetID() string
BindID(id string)
GetName() string
Deserialize(j map[string]interface{}) DBObject
Serialize() map[string]interface{}
@@ -15,6 +14,7 @@ type Accessor interface {
GetType() string
LoadOne(id string) (DBObject, int, error)
DeleteOne(id string) (DBObject, int, error)
CopyOne(data DBObject) (DBObject, int, error)
StoreOne(data DBObject) (DBObject, int, error)
UpdateOne(set map[string]interface{}, id string) (DBObject, int, error)
}