package logic import ( "context" "bp.jydev.jianyu360.cn/BaseService/orderCenter/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/orderCenter/rpc/pb" "bp.jydev.jianyu360.cn/BaseService/orderCenter/service" "github.com/zeromicro/go-zero/core/logx" ) type InvoiceAddLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewInvoiceAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InvoiceAddLogic { return &InvoiceAddLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 订单开票 func (l *InvoiceAddLogic) InvoiceAdd(in *pb.InvoiceAddReq) (*pb.OrderAddUpdateResp, error) { // todo: add your logic here and delete this line return service.InvoiceAdd(in), nil }