This commit is contained in:
mr 2024-07-19 12:57:25 +02:00
parent d28662d70b
commit 5c44b46bcb

View File

@ -2,13 +2,14 @@ package oclib
import ( import (
"encoding/json" "encoding/json"
"fmt"
w "cloud.o-forge.io/core/oc-lib/models/resources/workflow" w "cloud.o-forge.io/core/oc-lib/models/resources/workflow"
"cloud.o-forge.io/core/oc-lib/models/utils" "cloud.o-forge.io/core/oc-lib/models/utils"
) )
type Workflow struct { type Workflow struct {
utils.AbstractObject *utils.AbstractObject
w.AbstractWorkflow w.AbstractWorkflow
} }
@ -28,6 +29,7 @@ func (dma *Workflow) Deserialize(j map[string]interface{}) utils.DBObject {
return nil return nil
} }
json.Unmarshal(b, dma) json.Unmarshal(b, dma)
fmt.Println(j, dma)
return dma return dma
} }