block-accounting/backend/internal/interface/rest/controllers/root.go

26 lines
602 B
Go
Raw Normal View History

2024-05-24 17:44:24 +00:00
package controllers
type RootController struct {
Ping PingController
Auth AuthController
Organizations OrganizationsController
Transactions TransactionsController
Participants ParticipantsController
}
func NewRootController(
ping PingController,
auth AuthController,
organizations OrganizationsController,
transactions TransactionsController,
participants ParticipantsController,
) *RootController {
return &RootController{
Ping: ping,
Auth: auth,
Organizations: organizations,
Transactions: transactions,
Participants: participants,
}
}