This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
authHandler "github.com/break/junhong_cmp_fiber/internal/handler/auth"
|
||||
"github.com/break/junhong_cmp_fiber/internal/handler/callback"
|
||||
openapiHandler "github.com/break/junhong_cmp_fiber/internal/handler/openapi"
|
||||
approvalInfra "github.com/break/junhong_cmp_fiber/internal/infrastructure/approval"
|
||||
auditInfra "github.com/break/junhong_cmp_fiber/internal/infrastructure/audit"
|
||||
"github.com/break/junhong_cmp_fiber/internal/infrastructure/carriercallback"
|
||||
"github.com/break/junhong_cmp_fiber/internal/infrastructure/integrationlog"
|
||||
@@ -359,10 +360,11 @@ func initHandlers(svc *services, deps *Dependencies) *Handlers {
|
||||
WechatConfig: admin.NewWechatConfigHandler(svc.WechatConfig),
|
||||
PaymentMerchant: admin.NewPaymentMerchantHandler(merchantPaymentApp.NewManagementService(deps.DB, systemConfigAudit)),
|
||||
EmployeeCollection: func() *admin.EmployeeCollectionHandler {
|
||||
application := employeecollectionApp.NewApplicationService(deps.DB, svc.Approval, svc.AccessAudit)
|
||||
application.SetRecoveryPort(approvalInfra.NewRecoveryPort(deps.DB, deps.QueueClient))
|
||||
handler := admin.NewEmployeeCollectionHandler(
|
||||
employeecollectionApp.NewPaymentMethodService(deps.DB, svc.AccessAudit),
|
||||
employeecollectionApp.NewBillCloseService(deps.DB, svc.AccessAudit),
|
||||
employeecollectionApp.NewApplicationService(deps.DB, svc.Approval, svc.AccessAudit),
|
||||
employeecollectionApp.NewBillCloseService(deps.DB, svc.AccessAudit), application,
|
||||
)
|
||||
handler.SetPaymentMethodQuery(employeecollectionQuery.NewPaymentMethodQuery(deps.DB))
|
||||
handler.SetBillQuery(employeecollectionQuery.NewBillQuery(deps.DB))
|
||||
|
||||
Reference in New Issue
Block a user