mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-22 17:21:45 +00:00
details improvement and unnecessary files deletion
This commit is contained in:
19
internal/scheduler/scheduler.go
Normal file
19
internal/scheduler/scheduler.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package scheduler
|
||||
|
||||
import (
|
||||
"github.com/usual2970/certimate/internal/certificate"
|
||||
"github.com/usual2970/certimate/internal/repository"
|
||||
"github.com/usual2970/certimate/internal/workflow"
|
||||
)
|
||||
|
||||
func Register() {
|
||||
workflowRepo := repository.NewWorkflowRepository()
|
||||
workflowSvc := workflow.NewWorkflowService(workflowRepo)
|
||||
|
||||
certificateRepo := repository.NewCertificateRepository()
|
||||
certificateSvc := certificate.NewCertificateService(certificateRepo)
|
||||
|
||||
NewCertificateScheduler(certificateSvc)
|
||||
|
||||
NewWorkflowScheduler(workflowSvc)
|
||||
}
|
Reference in New Issue
Block a user