mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
24 lines
713 B
Go
24 lines
713 B
Go
package repports
|
|
|
|
import (
|
|
"github.com/go-playground/validator/v10"
|
|
"github.com/gofiber/fiber/v2"
|
|
"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) {
|
|
// Initialize expense realization repository
|
|
expRealizationRepo := expenseRepo.NewExpenseRealizationRepository(db)
|
|
|
|
// Initialize report service with expense realization repo
|
|
repportService := sRepport.NewRepportService(validate, expRealizationRepo)
|
|
|
|
RepportRoutes(router, repportService)
|
|
}
|