// Code generated by goctl. DO NOT EDIT.
// goctl 1.9.2
// Source: community.proto

package server

import (
	"context"

	"juwan-backend/app/community/rpc/internal/logic"
	"juwan-backend/app/community/rpc/internal/svc"
	"juwan-backend/app/community/rpc/pb"
)

type CommunityServiceServer struct {
	svcCtx *svc.ServiceContext
	pb.UnimplementedCommunityServiceServer
}

func NewCommunityServiceServer(svcCtx *svc.ServiceContext) *CommunityServiceServer {
	return &CommunityServiceServer{
		svcCtx: svcCtx,
	}
}

// -----------------------commentLikes-----------------------
func (s *CommunityServiceServer) AddCommentLikes(ctx context.Context, in *pb.AddCommentLikesReq) (*pb.AddCommentLikesResp, error) {
	l := logic.NewAddCommentLikesLogic(ctx, s.svcCtx)
	return l.AddCommentLikes(in)
}

func (s *CommunityServiceServer) UpdateCommentLikes(ctx context.Context, in *pb.UpdateCommentLikesReq) (*pb.UpdateCommentLikesResp, error) {
	l := logic.NewUpdateCommentLikesLogic(ctx, s.svcCtx)
	return l.UpdateCommentLikes(in)
}

func (s *CommunityServiceServer) DelCommentLikes(ctx context.Context, in *pb.DelCommentLikesReq) (*pb.DelCommentLikesResp, error) {
	l := logic.NewDelCommentLikesLogic(ctx, s.svcCtx)
	return l.DelCommentLikes(in)
}

func (s *CommunityServiceServer) GetCommentLikesById(ctx context.Context, in *pb.GetCommentLikesByIdReq) (*pb.GetCommentLikesByIdResp, error) {
	l := logic.NewGetCommentLikesByIdLogic(ctx, s.svcCtx)
	return l.GetCommentLikesById(in)
}

func (s *CommunityServiceServer) SearchCommentLikes(ctx context.Context, in *pb.SearchCommentLikesReq) (*pb.SearchCommentLikesResp, error) {
	l := logic.NewSearchCommentLikesLogic(ctx, s.svcCtx)
	return l.SearchCommentLikes(in)
}

// -----------------------comments-----------------------
func (s *CommunityServiceServer) AddComments(ctx context.Context, in *pb.AddCommentsReq) (*pb.AddCommentsResp, error) {
	l := logic.NewAddCommentsLogic(ctx, s.svcCtx)
	return l.AddComments(in)
}

func (s *CommunityServiceServer) UpdateComments(ctx context.Context, in *pb.UpdateCommentsReq) (*pb.UpdateCommentsResp, error) {
	l := logic.NewUpdateCommentsLogic(ctx, s.svcCtx)
	return l.UpdateComments(in)
}

func (s *CommunityServiceServer) DelComments(ctx context.Context, in *pb.DelCommentsReq) (*pb.DelCommentsResp, error) {
	l := logic.NewDelCommentsLogic(ctx, s.svcCtx)
	return l.DelComments(in)
}

func (s *CommunityServiceServer) GetCommentsById(ctx context.Context, in *pb.GetCommentsByIdReq) (*pb.GetCommentsByIdResp, error) {
	l := logic.NewGetCommentsByIdLogic(ctx, s.svcCtx)
	return l.GetCommentsById(in)
}

func (s *CommunityServiceServer) SearchComments(ctx context.Context, in *pb.SearchCommentsReq) (*pb.SearchCommentsResp, error) {
	l := logic.NewSearchCommentsLogic(ctx, s.svcCtx)
	return l.SearchComments(in)
}

// -----------------------postLikes-----------------------
func (s *CommunityServiceServer) AddPostLikes(ctx context.Context, in *pb.AddPostLikesReq) (*pb.AddPostLikesResp, error) {
	l := logic.NewAddPostLikesLogic(ctx, s.svcCtx)
	return l.AddPostLikes(in)
}

func (s *CommunityServiceServer) UpdatePostLikes(ctx context.Context, in *pb.UpdatePostLikesReq) (*pb.UpdatePostLikesResp, error) {
	l := logic.NewUpdatePostLikesLogic(ctx, s.svcCtx)
	return l.UpdatePostLikes(in)
}

func (s *CommunityServiceServer) DelPostLikes(ctx context.Context, in *pb.DelPostLikesReq) (*pb.DelPostLikesResp, error) {
	l := logic.NewDelPostLikesLogic(ctx, s.svcCtx)
	return l.DelPostLikes(in)
}

func (s *CommunityServiceServer) GetPostLikesById(ctx context.Context, in *pb.GetPostLikesByIdReq) (*pb.GetPostLikesByIdResp, error) {
	l := logic.NewGetPostLikesByIdLogic(ctx, s.svcCtx)
	return l.GetPostLikesById(in)
}

func (s *CommunityServiceServer) SearchPostLikes(ctx context.Context, in *pb.SearchPostLikesReq) (*pb.SearchPostLikesResp, error) {
	l := logic.NewSearchPostLikesLogic(ctx, s.svcCtx)
	return l.SearchPostLikes(in)
}

// -----------------------posts-----------------------
func (s *CommunityServiceServer) AddPosts(ctx context.Context, in *pb.AddPostsReq) (*pb.AddPostsResp, error) {
	l := logic.NewAddPostsLogic(ctx, s.svcCtx)
	return l.AddPosts(in)
}

func (s *CommunityServiceServer) UpdatePosts(ctx context.Context, in *pb.UpdatePostsReq) (*pb.UpdatePostsResp, error) {
	l := logic.NewUpdatePostsLogic(ctx, s.svcCtx)
	return l.UpdatePosts(in)
}

func (s *CommunityServiceServer) DelPosts(ctx context.Context, in *pb.DelPostsReq) (*pb.DelPostsResp, error) {
	l := logic.NewDelPostsLogic(ctx, s.svcCtx)
	return l.DelPosts(in)
}

func (s *CommunityServiceServer) GetPostsById(ctx context.Context, in *pb.GetPostsByIdReq) (*pb.GetPostsByIdResp, error) {
	l := logic.NewGetPostsByIdLogic(ctx, s.svcCtx)
	return l.GetPostsById(in)
}

func (s *CommunityServiceServer) SearchPosts(ctx context.Context, in *pb.SearchPostsReq) (*pb.SearchPostsResp, error) {
	l := logic.NewSearchPostsLogic(ctx, s.svcCtx)
	return l.SearchPosts(in)
}
