mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-30 11:26:35 +08:00
refactor: 使用泛型重构参数绑定等
This commit is contained in:
@@ -61,7 +61,7 @@ func (p *Procdef) GetFlowDef() *FlowDef {
|
||||
if p.FlowDef == "" {
|
||||
return nil
|
||||
}
|
||||
flow, err := jsonx.To(p.FlowDef, new(FlowDef))
|
||||
flow, err := jsonx.To[*FlowDef](p.FlowDef)
|
||||
if err != nil {
|
||||
logx.ErrorTrace("parse flow def failed", err)
|
||||
return flow
|
||||
|
||||
Reference in New Issue
Block a user