123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- // 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) OrderAddUpdate(ctx context.Context, in *pb.OrderAddUpdateReq) (*pb.OrderAddUpdateResp, error) {
- l := logic.NewOrderAddUpdateLogic(ctx, s.svcCtx)
- return l.OrderAddUpdate(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)
- }
|