// Code generated by goctl. DO NOT EDIT. // goctl 1.10.1 // Source: dispute.proto package server import ( "context" "juwan-backend/app/dispute/rpc/internal/logic" "juwan-backend/app/dispute/rpc/internal/svc" "juwan-backend/app/dispute/rpc/pb" ) type DisputeServiceServer struct { svcCtx *svc.ServiceContext pb.UnimplementedDisputeServiceServer } func NewDisputeServiceServer(svcCtx *svc.ServiceContext) *DisputeServiceServer { return &DisputeServiceServer{ svcCtx: svcCtx, } } // -----------------------disputes----------------------- func (s *DisputeServiceServer) AddDisputes(ctx context.Context, in *pb.AddDisputesReq) (*pb.AddDisputesResp, error) { l := logic.NewAddDisputesLogic(ctx, s.svcCtx) return l.AddDisputes(in) } func (s *DisputeServiceServer) UpdateDisputes(ctx context.Context, in *pb.UpdateDisputesReq) (*pb.UpdateDisputesResp, error) { l := logic.NewUpdateDisputesLogic(ctx, s.svcCtx) return l.UpdateDisputes(in) } func (s *DisputeServiceServer) DelDisputes(ctx context.Context, in *pb.DelDisputesReq) (*pb.DelDisputesResp, error) { l := logic.NewDelDisputesLogic(ctx, s.svcCtx) return l.DelDisputes(in) } func (s *DisputeServiceServer) GetDisputesById(ctx context.Context, in *pb.GetDisputesByIdReq) (*pb.GetDisputesByIdResp, error) { l := logic.NewGetDisputesByIdLogic(ctx, s.svcCtx) return l.GetDisputesById(in) } func (s *DisputeServiceServer) SearchDisputes(ctx context.Context, in *pb.SearchDisputesReq) (*pb.SearchDisputesResp, error) { l := logic.NewSearchDisputesLogic(ctx, s.svcCtx) return l.SearchDisputes(in) } // -----------------------disputeTimeline----------------------- func (s *DisputeServiceServer) AddDisputeTimeline(ctx context.Context, in *pb.AddDisputeTimelineReq) (*pb.AddDisputeTimelineResp, error) { l := logic.NewAddDisputeTimelineLogic(ctx, s.svcCtx) return l.AddDisputeTimeline(in) } func (s *DisputeServiceServer) SearchDisputeTimeline(ctx context.Context, in *pb.SearchDisputeTimelineReq) (*pb.SearchDisputeTimelineResp, error) { l := logic.NewSearchDisputeTimelineLogic(ctx, s.svcCtx) return l.SearchDisputeTimeline(in) }