approveflow/app/provider/flow_instance/provider.go

32 lines
615 B
Go
Raw Normal View History

2024-11-14 17:02:41 +08:00
package flow_instance
import (
"github.com/Superdanda/hade/framework"
)
type FlowInstanceProvider struct {
framework.ServiceProvider
c framework.Container
}
func (sp *FlowInstanceProvider) Name() string {
return FlowInstanceKey
}
func (sp *FlowInstanceProvider) Register(c framework.Container) framework.NewInstance {
return NewFlowInstanceService
}
func (sp *FlowInstanceProvider) IsDefer() bool {
return false
}
func (sp *FlowInstanceProvider) Params(c framework.Container) []interface{} {
return []interface{}{c}
}
func (sp *FlowInstanceProvider) Boot(c framework.Container) error {
return nil
}