顺丰的查询、预计时间、取消接口
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 22s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 22s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
This commit is contained in:
@@ -36,6 +36,7 @@ const (
|
||||
Order_OrderAuditing_FullMethodName = "/order.order/OrderAuditing"
|
||||
Order_OrderCreate_FullMethodName = "/order.order/OrderCreate"
|
||||
Order_UpdateOrderDeliverStatus_FullMethodName = "/order.order/UpdateOrderDeliverStatus"
|
||||
Order_GetOrderInfo_FullMethodName = "/order.order/GetOrderInfo"
|
||||
)
|
||||
|
||||
// OrderClient is the client API for Order service.
|
||||
@@ -59,6 +60,7 @@ type OrderClient interface {
|
||||
OrderAuditing(ctx context.Context, in *OrderAuditingRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
OrderCreate(ctx context.Context, in *AdminCreateOrderRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
UpdateOrderDeliverStatus(ctx context.Context, in *UpdateOrderDeliverStatusRequest, opts ...grpc.CallOption) (*UpdateOrderDeliverStatusResponse, error)
|
||||
GetOrderInfo(ctx context.Context, in *GetOrderInfoRequest, opts ...grpc.CallOption) (*OrderInfoResponse, error)
|
||||
}
|
||||
|
||||
type orderClient struct {
|
||||
@@ -239,6 +241,16 @@ func (c *orderClient) UpdateOrderDeliverStatus(ctx context.Context, in *UpdateOr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *orderClient) GetOrderInfo(ctx context.Context, in *GetOrderInfoRequest, opts ...grpc.CallOption) (*OrderInfoResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(OrderInfoResponse)
|
||||
err := c.cc.Invoke(ctx, Order_GetOrderInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// OrderServer is the server API for Order service.
|
||||
// All implementations must embed UnimplementedOrderServer
|
||||
// for forward compatibility.
|
||||
@@ -260,6 +272,7 @@ type OrderServer interface {
|
||||
OrderAuditing(context.Context, *OrderAuditingRequest) (*Response, error)
|
||||
OrderCreate(context.Context, *AdminCreateOrderRequest) (*Response, error)
|
||||
UpdateOrderDeliverStatus(context.Context, *UpdateOrderDeliverStatusRequest) (*UpdateOrderDeliverStatusResponse, error)
|
||||
GetOrderInfo(context.Context, *GetOrderInfoRequest) (*OrderInfoResponse, error)
|
||||
mustEmbedUnimplementedOrderServer()
|
||||
}
|
||||
|
||||
@@ -321,6 +334,9 @@ func (UnimplementedOrderServer) OrderCreate(context.Context, *AdminCreateOrderRe
|
||||
func (UnimplementedOrderServer) UpdateOrderDeliverStatus(context.Context, *UpdateOrderDeliverStatusRequest) (*UpdateOrderDeliverStatusResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateOrderDeliverStatus not implemented")
|
||||
}
|
||||
func (UnimplementedOrderServer) GetOrderInfo(context.Context, *GetOrderInfoRequest) (*OrderInfoResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetOrderInfo not implemented")
|
||||
}
|
||||
func (UnimplementedOrderServer) mustEmbedUnimplementedOrderServer() {}
|
||||
func (UnimplementedOrderServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -648,6 +664,24 @@ func _Order_UpdateOrderDeliverStatus_Handler(srv interface{}, ctx context.Contex
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Order_GetOrderInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetOrderInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OrderServer).GetOrderInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Order_GetOrderInfo_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OrderServer).GetOrderInfo(ctx, req.(*GetOrderInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Order_ServiceDesc is the grpc.ServiceDesc for Order service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -723,6 +757,10 @@ var Order_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "UpdateOrderDeliverStatus",
|
||||
Handler: _Order_UpdateOrderDeliverStatus_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetOrderInfo",
|
||||
Handler: _Order_GetOrderInfo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "order/order.proto",
|
||||
|
||||
Reference in New Issue
Block a user