16 lines
327 B
Go
16 lines
327 B
Go
|
|
package controller
|
||
|
|
|
||
|
|
import "narasi-ahli-be/app/module/notifications/service"
|
||
|
|
|
||
|
|
type Controller struct {
|
||
|
|
Notifications NotificationsController
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewController(
|
||
|
|
NotificationsService service.NotificationsService,
|
||
|
|
) *Controller {
|
||
|
|
return &Controller{
|
||
|
|
Notifications: NewNotificationsController(NotificationsService),
|
||
|
|
}
|
||
|
|
}
|