This commit is contained in:
mr 2024-11-28 13:41:50 +01:00
parent 9ea342c4c4
commit e524c865ea

View File

@ -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) {