30 lines
613 B
Go
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,
|
|
}
|
|
}
|