mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 23:56:37 +08:00
feat(contracts): provide SystemConfigService, UploadService and TaskService.GetExecutionByTaskID
This commit is contained in:
@@ -99,6 +99,7 @@ func (p *Plugin) Apply(ctx *core.Context) error {
|
||||
core.Bind[contracts.RiskControlService](ctx, service.SetRiskControlService)
|
||||
service.SetEventEmitter(ctx.Events().Emit)
|
||||
core.Provide[contracts.PublicConfigProvider](ctx, service.PublicConfigAdapter{})
|
||||
core.Provide[contracts.SystemConfigService](ctx, service.SystemConfigServiceImpl{})
|
||||
|
||||
ctx.OnDispose(func() error {
|
||||
service.ResetServices()
|
||||
|
||||
Reference in New Issue
Block a user