28 lines
513 B
Go
28 lines
513 B
Go
package service
|
|
|
|
import _ "tailly_back_v2/internal/repository"
|
|
|
|
type Services struct {
|
|
Auth AuthService
|
|
User UserService
|
|
Post PostService
|
|
Comment CommentService
|
|
Like LikeService
|
|
}
|
|
|
|
func NewServices(
|
|
authService AuthService,
|
|
userService UserService,
|
|
postService PostService,
|
|
commentService CommentService,
|
|
likeService LikeService,
|
|
) *Services {
|
|
return &Services{
|
|
Auth: authService,
|
|
User: userService,
|
|
Post: postService,
|
|
Comment: commentService,
|
|
Like: likeService,
|
|
}
|
|
}
|