// Code generated by goctl. DO NOT EDIT! // Source: orderCenter.proto package server import ( "context" "bp.jydev.jianyu360.cn/BaseService/orderCenter/rpc/internal/logic" "bp.jydev.jianyu360.cn/BaseService/orderCenter/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/orderCenter/rpc/pb" ) type OrderCenterServer struct { svcCtx *svc.ServiceContext } func NewOrderCenterServer(svcCtx *svc.ServiceContext) *OrderCenterServer { return &OrderCenterServer{ svcCtx: svcCtx, } } // 分布式ID生成器 func (s *OrderCenterServer) GetOrderCode(ctx context.Context, in *pb.GetOrderCodeReq) (*pb.GetOrderCodeResp, error) { l := logic.NewGetOrderCodeLogic(ctx, s.svcCtx) return l.GetOrderCode(in) } // 订单增加 func (s *OrderCenterServer) OrderAdd(ctx context.Context, in *pb.OrderAddUpdateReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewOrderAddLogic(ctx, s.svcCtx) return l.OrderAdd(in) } // 订单修改 func (s *OrderCenterServer) OrderUpdate(ctx context.Context, in *pb.OrderAddUpdateReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewOrderUpdateLogic(ctx, s.svcCtx) return l.OrderUpdate(in) } // 订单修改状态 func (s *OrderCenterServer) OrderStatusUpdate(ctx context.Context, in *pb.OrderStatusUpdateReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewOrderStatusUpdateLogic(ctx, s.svcCtx) return l.OrderStatusUpdate(in) } // 订单删除 func (s *OrderCenterServer) OrderDel(ctx context.Context, in *pb.OrderDelReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewOrderDelLogic(ctx, s.svcCtx) return l.OrderDel(in) } // 订单列表 func (s *OrderCenterServer) OrderList(ctx context.Context, in *pb.OrderListReq) (*pb.OrderListResp, error) { l := logic.NewOrderListLogic(ctx, s.svcCtx) return l.OrderList(in) } // 订单查看 func (s *OrderCenterServer) OrderInfo(ctx context.Context, in *pb.OrderInfoReq) (*pb.OrderInfoResp, error) { l := logic.NewOrderInfoLogic(ctx, s.svcCtx) return l.OrderInfo(in) } // 订单支付 func (s *OrderCenterServer) PayAdd(ctx context.Context, in *pb.PayAddReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewPayAddLogic(ctx, s.svcCtx) return l.PayAdd(in) } // 订单支付信息 func (s *OrderCenterServer) PayInfo(ctx context.Context, in *pb.OrderInfoReq) (*pb.PayInfoResp, error) { l := logic.NewPayInfoLogic(ctx, s.svcCtx) return l.PayInfo(in) } // 订单退款 func (s *OrderCenterServer) RefundAdd(ctx context.Context, in *pb.RefundAddReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewRefundAddLogic(ctx, s.svcCtx) return l.RefundAdd(in) } // 订单退款信息 func (s *OrderCenterServer) RefundInfo(ctx context.Context, in *pb.OrderInfoReq) (*pb.RefundInfoResp, error) { l := logic.NewRefundInfoLogic(ctx, s.svcCtx) return l.RefundInfo(in) } // 订单开票 func (s *OrderCenterServer) InvoiceAdd(ctx context.Context, in *pb.InvoiceAddReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewInvoiceAddLogic(ctx, s.svcCtx) return l.InvoiceAdd(in) } // 订单发票信息 func (s *OrderCenterServer) InvoiceInfo(ctx context.Context, in *pb.InvoiceInfoReq) (*pb.InvoiceInfoResp, error) { l := logic.NewInvoiceInfoLogic(ctx, s.svcCtx) return l.InvoiceInfo(in) } // 订单发票冲红 func (s *OrderCenterServer) RedAdd(ctx context.Context, in *pb.InvoiceAddReq) (*pb.OrderAddUpdateResp, error) { l := logic.NewRedAddLogic(ctx, s.svcCtx) return l.RedAdd(in) } // 订单红票信息 func (s *OrderCenterServer) RedInfo(ctx context.Context, in *pb.InvoiceInfoReq) (*pb.InvoiceInfoResp, error) { l := logic.NewRedInfoLogic(ctx, s.svcCtx) return l.RedInfo(in) }