feat[BE]: menambahkan repo expense dan menhapus API API yang tidak akan digunakan di module repport

This commit is contained in:
aguhh18
2025-12-10 13:41:53 +07:00
parent 16d1358b3a
commit 3f9865d267
5 changed files with 65 additions and 138 deletions
+7 -1
View File
@@ -6,12 +6,18 @@ import (
"gorm.io/gorm"
sRepport "gitlab.com/mbugroup/lti-api.git/internal/modules/repports/services"
expenseRepo "gitlab.com/mbugroup/lti-api.git/internal/modules/expenses/repositories"
)
type RepportModule struct{}
func (RepportModule) RegisterRoutes(router fiber.Router, db *gorm.DB, validate *validator.Validate) {
repportService := sRepport.NewRepportService(validate)
// Initialize expense realization repository
expRealizationRepo := expenseRepo.NewExpenseRealizationRepository(db)
// Initialize report service with expense realization repo
repportService := sRepport.NewRepportService(validate, expRealizationRepo)
RepportRoutes(router, repportService)
}