service backend
This commit is contained in:
10
api/pkg/db/storable/storable.go
Normal file
10
api/pkg/db/storable/storable.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package storable
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type Storable interface {
|
||||
GetID() *primitive.ObjectID
|
||||
SetID(objID primitive.ObjectID)
|
||||
Update()
|
||||
Collection() string
|
||||
}
|
||||
Reference in New Issue
Block a user