26 lines
1.2 KiB
Go
26 lines
1.2 KiB
Go
package base
|
|
|
|
// CondflowDecisionAction 执行器动作定义
|
|
type CondflowDecisionAction struct {
|
|
Name string `db:"name" json:"name"`
|
|
Code string `db:"code" json:"code"`
|
|
ConfigSchema SchemaParams `db:"config_schema" json:"config_schema"` // 配置项Schema定义
|
|
ParamsSchema SchemaParams `db:"params_schema" json:"params_schema"` // 参数Schema定义
|
|
ResourceUuid string `db:"resource_uuid" json:"resource_uuid"`
|
|
Comment string `db:"comment" json:"comment"`
|
|
}
|
|
|
|
// CondflowDecision 执行器注册表
|
|
type CondflowDecision struct {
|
|
Uuid string `db:"uuid" json:"uuid"`
|
|
ResourceUuid string `db:"resource_uuid" json:"resource_uuid"`
|
|
Name string `db:"name" json:"name"`
|
|
Code string `db:"code" json:"code"`
|
|
Comment string `db:"comment" json:"comment"`
|
|
Actions []CondflowDecisionAction `db:"actions" json:"actions"`
|
|
CreatedAt string `db:"created_at" json:"created_at"`
|
|
UpdatedAt string `db:"updated_at" json:"updated_at"`
|
|
}
|
|
|
|
type GetCondflowDecision func(code string) (CondflowDecision, bool)
|