jaecoo-be/app/module/chat/controller/controller.go

18 lines
612 B
Go
Raw Normal View History

2025-11-15 15:46:24 +00:00
package controller
import "campaign-pool-be/app/module/chat/service"
type Controller struct {
Chat ChatController
ChatSchedule ChatScheduleController
ChatScheduleFile ChatScheduleFileController
}
func NewController(ChatService service.ChatService, ChatScheduleService service.ChatScheduleService, ChatScheduleFileService service.ChatScheduleFileService) *Controller {
return &Controller{
Chat: NewChatController(ChatService),
ChatSchedule: NewChatScheduleController(ChatScheduleService),
ChatScheduleFile: NewChatScheduleFileController(ChatScheduleFileService),
}
}