39 lines
1.1 KiB
Go
39 lines
1.1 KiB
Go
package service
|
|
|
|
import (
|
|
_ "tailly_back_v2/internal/repository"
|
|
"tailly_back_v2/proto"
|
|
)
|
|
|
|
type Services struct {
|
|
Auth AuthService
|
|
User UserService
|
|
Post PostService
|
|
Comment CommentService
|
|
Like LikeService
|
|
Session SessionService
|
|
Mail MailService
|
|
Recovery RecoveryService
|
|
Audit AuditService
|
|
Messages proto.MessageServiceClient
|
|
Subscribe proto.SubscribeServiceClient
|
|
Clips proto.ClipServiceClient
|
|
}
|
|
|
|
func NewServices(authService AuthService, userService UserService, postService PostService, commentService CommentService, likeService LikeService, mailService MailService, auditService AuditService, recoveryService RecoveryService, sessionService SessionService, messages proto.MessageServiceClient, subscribe proto.SubscribeServiceClient, clips proto.ClipServiceClient) *Services {
|
|
return &Services{
|
|
Auth: authService,
|
|
User: userService,
|
|
Post: postService,
|
|
Comment: commentService,
|
|
Like: likeService,
|
|
Session: sessionService,
|
|
Mail: mailService,
|
|
Recovery: recoveryService,
|
|
Audit: auditService,
|
|
Messages: messages,
|
|
Subscribe: subscribe,
|
|
Clips: clips,
|
|
}
|
|
}
|