mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
feat[BE]: menambahkan repo expense dan menhapus API API yang tidak akan digunakan di module repport
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user