some
This commit is contained in:
parent
9ea342c4c4
commit
e524c865ea
@ -3,7 +3,9 @@ package resource_model
|
||||
import (
|
||||
"cloud.o-forge.io/core/oc-lib/dbs"
|
||||
"cloud.o-forge.io/core/oc-lib/dbs/mongo"
|
||||
"cloud.o-forge.io/core/oc-lib/logs"
|
||||
"cloud.o-forge.io/core/oc-lib/models/utils"
|
||||
"cloud.o-forge.io/core/oc-lib/tools"
|
||||
)
|
||||
|
||||
type ResourceModelMongoAccessor struct {
|
||||
@ -15,7 +17,12 @@ type ResourceModelMongoAccessor struct {
|
||||
*/
|
||||
|
||||
func New() *ResourceModelMongoAccessor {
|
||||
return &ResourceModelMongoAccessor{}
|
||||
return &ResourceModelMongoAccessor{
|
||||
utils.AbstractAccessor{
|
||||
Type: tools.RESOURCE_MODEL.String(),
|
||||
Logger: logs.CreateLogger(tools.RESOURCE_MODEL.String()),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (wfa *ResourceModelMongoAccessor) DeleteOne(id string) (utils.DBObject, int, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user