feat: 添加争议微服务,支持订单争议流程

This commit is contained in:
zetaloop
2026-04-24 12:31:41 +08:00
parent 6edf15996c
commit 95f2f10f9f
66 changed files with 13301 additions and 57 deletions
@@ -0,0 +1,61 @@
// 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)
}