madipo2611 a5a90bed7e v0.0.1
2025-04-28 15:14:02 +03:00

30 lines
613 B
Go

package service
// Services объединяет все сервисы приложения
type Services struct {
Auth AuthService
User UserService
Post PostService
Comment CommentService
Like LikeService
Chat ChatService
}
func NewServices(
authService AuthService,
userService UserService,
postService PostService,
commentService CommentService,
likeService LikeService,
chatService ChatService,
) *Services {
return &Services{
Auth: authService,
User: userService,
Post: postService,
Comment: commentService,
Like: likeService,
Chat: chatService,
}
}