madipo2611 dc22989752
All checks were successful
continuous-integration/drone/push Build is passing
v0.0.17 Переработан websocket
2025-08-10 18:19:20 +03:00

37 lines
998 B
Go

package service
import (
_ "tailly_back_v2/internal/repository"
"tailly_back_v2/internal/ws"
)
type Services struct {
Auth AuthService
User UserService
Post PostService
Comment CommentService
Like LikeService
Session SessionService
Mail MailService
Recovery RecoveryService
Audit AuditService
Chat ChatService
ChatHub *ws.Hub
}
func NewServices(authService AuthService, userService UserService, postService PostService, commentService CommentService, likeService LikeService, mailService MailService, auditService AuditService, recoveryService RecoveryService, sessionService SessionService, chatService ChatService, chatHub *ws.Hub) *Services {
return &Services{
Auth: authService,
User: userService,
Post: postService,
Comment: commentService,
Like: likeService,
Session: sessionService,
Mail: mailService,
Recovery: recoveryService,
Audit: auditService,
Chat: chatService,
ChatHub: chatHub,
}
}