32 lines
575 B
Go
32 lines
575 B
Go
package handler
|
|
|
|
import (
|
|
"ticket-pimp/bot/controller"
|
|
"ticket-pimp/internal/services"
|
|
)
|
|
|
|
type Handler struct {
|
|
workflow controller.IWorkflowController
|
|
git services.IGit
|
|
cloud services.ICloud
|
|
coda services.ICoda
|
|
key string
|
|
id string
|
|
}
|
|
|
|
func NewHandler(
|
|
git services.IGit,
|
|
cloud services.ICloud,
|
|
devyt services.IYouTrack,
|
|
farmyt services.IYouTrack,
|
|
coda services.ICoda,
|
|
) *Handler {
|
|
|
|
return &Handler{
|
|
workflow: controller.NewWorkflowController(git, cloud, devyt, farmyt, coda),
|
|
git: git,
|
|
cloud: cloud,
|
|
coda: coda,
|
|
}
|
|
}
|