test *
This commit is contained in:
parent
d28662d70b
commit
5c44b46bcb
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user