2025-09-22 13:05:40 +00:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import "narasi-ahli-be/app/module/chat/service"
|
|
|
|
|
|
|
|
|
|
type Controller struct {
|
2025-09-22 18:47:06 +00:00
|
|
|
Chat ChatController
|
|
|
|
|
ChatSchedule ChatScheduleController
|
|
|
|
|
ChatScheduleFile ChatScheduleFileController
|
2025-09-22 13:05:40 +00:00
|
|
|
}
|
|
|
|
|
|
2025-09-22 18:47:06 +00:00
|
|
|
func NewController(ChatService service.ChatService, ChatScheduleService service.ChatScheduleService, ChatScheduleFileService service.ChatScheduleFileService) *Controller {
|
2025-09-22 13:05:40 +00:00
|
|
|
return &Controller{
|
2025-09-22 18:47:06 +00:00
|
|
|
Chat: NewChatController(ChatService),
|
|
|
|
|
ChatSchedule: NewChatScheduleController(ChatScheduleService),
|
|
|
|
|
ChatScheduleFile: NewChatScheduleFileController(ChatScheduleFileService),
|
2025-09-22 13:05:40 +00:00
|
|
|
}
|
|
|
|
|
}
|