feat: 升级 samber/do v1 → v2
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package base
|
||||
|
||||
import "git.fsdpf.net/go/reflux/fieldx"
|
||||
|
||||
// CondflowCase 工作流条件分支
|
||||
type CondflowCase struct {
|
||||
Uuid string `db:"uuid" json:"uuid"`
|
||||
CondflowUuid string `db:"condflow_uuid" json:"condflow_uuid"`
|
||||
Name string `db:"name" json:"name"`
|
||||
Code string `db:"code" json:"code"`
|
||||
Priority int `db:"priority" json:"priority"`
|
||||
Action string `db:"action" json:"action"`
|
||||
ActionParams fieldx.Schema `db:"action_params" json:"action_params"` // 动作参数值, 对应 params_schema
|
||||
ActionConfig fieldx.Schema `db:"action_config" json:"action_config"` // 动作配置值, 对应 config_schema
|
||||
NextCaseOnSuccess bool `db:"next_case_on_success" json:"next_case_on_success"`
|
||||
NextFlowUuid string `db:"next_flow_uuid" json:"next_flow_uuid"`
|
||||
NextFlowParams fieldx.Schema `db:"next_flow_params" json:"next_flow_params"` // 流程间参数映射
|
||||
Comment string `db:"comment" json:"comment"`
|
||||
CreatedAt string `db:"created_at" json:"created_at"`
|
||||
UpdatedAt string `db:"updated_at" json:"updated_at"`
|
||||
}
|
||||
|
||||
type GetCondflowCases func(uuid string) []CondflowCase
|
||||
Reference in New Issue
Block a user