test copy
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user