mirror of
https://github.com/emo2007/block-accounting.git
synced 2024-11-13 22:06:27 +00:00
26 lines
602 B
Go
26 lines
602 B
Go
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,
|
|
}
|
|
}
|