feat: product items info
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v4.25.8
|
||||
// - protoc v3.19.4
|
||||
// source: order/order.proto
|
||||
|
||||
package order
|
||||
@@ -33,6 +33,7 @@ const (
|
||||
Order_UpdateOrderDeliverStatus_FullMethodName = "/order.order/UpdateOrderDeliverStatus"
|
||||
Order_GetOrderInfo_FullMethodName = "/order.order/GetOrderInfo"
|
||||
Order_UpdateOrderPayStatus_FullMethodName = "/order.order/UpdateOrderPayStatus"
|
||||
Order_ExistByStoreProduct_FullMethodName = "/order.order/ExistByStoreProduct"
|
||||
Order_ApiSupply_FullMethodName = "/order.order/ApiSupply"
|
||||
Order_ApiSupplyInfo_FullMethodName = "/order.order/ApiSupplyInfo"
|
||||
Order_WebCreate_FullMethodName = "/order.order/WebCreate"
|
||||
@@ -69,6 +70,8 @@ type OrderClient interface {
|
||||
GetOrderInfo(ctx context.Context, in *GetOrderInfoRequest, opts ...grpc.CallOption) (*OrderInfoResponse, error)
|
||||
// status 1 为已支付 4 支付失败,其它的返回错误
|
||||
UpdateOrderPayStatus(ctx context.Context, in *UpdateOrderPayStatusRequest, opts ...grpc.CallOption) (*UpdateOrderPayStatusResponse, error)
|
||||
// 门店是否存在指定产品的有效/待支付订单(内部)
|
||||
ExistByStoreProduct(ctx context.Context, in *ExistByStoreProductReq, opts ...grpc.CallOption) (*ExistByStoreProductResp, error)
|
||||
// ****************API*********************
|
||||
ApiSupply(ctx context.Context, in *ApiSupplyRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ApiSupplyInfo(ctx context.Context, in *ApiSupplyInfoRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
@@ -234,6 +237,16 @@ func (c *orderClient) UpdateOrderPayStatus(ctx context.Context, in *UpdateOrderP
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *orderClient) ExistByStoreProduct(ctx context.Context, in *ExistByStoreProductReq, opts ...grpc.CallOption) (*ExistByStoreProductResp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ExistByStoreProductResp)
|
||||
err := c.cc.Invoke(ctx, Order_ExistByStoreProduct_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *orderClient) ApiSupply(ctx context.Context, in *ApiSupplyRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -394,6 +407,8 @@ type OrderServer interface {
|
||||
GetOrderInfo(context.Context, *GetOrderInfoRequest) (*OrderInfoResponse, error)
|
||||
// status 1 为已支付 4 支付失败,其它的返回错误
|
||||
UpdateOrderPayStatus(context.Context, *UpdateOrderPayStatusRequest) (*UpdateOrderPayStatusResponse, error)
|
||||
// 门店是否存在指定产品的有效/待支付订单(内部)
|
||||
ExistByStoreProduct(context.Context, *ExistByStoreProductReq) (*ExistByStoreProductResp, error)
|
||||
// ****************API*********************
|
||||
ApiSupply(context.Context, *ApiSupplyRequest) (*Response, error)
|
||||
ApiSupplyInfo(context.Context, *ApiSupplyInfoRequest) (*Response, error)
|
||||
@@ -461,6 +476,9 @@ func (UnimplementedOrderServer) GetOrderInfo(context.Context, *GetOrderInfoReque
|
||||
func (UnimplementedOrderServer) UpdateOrderPayStatus(context.Context, *UpdateOrderPayStatusRequest) (*UpdateOrderPayStatusResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateOrderPayStatus not implemented")
|
||||
}
|
||||
func (UnimplementedOrderServer) ExistByStoreProduct(context.Context, *ExistByStoreProductReq) (*ExistByStoreProductResp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ExistByStoreProduct not implemented")
|
||||
}
|
||||
func (UnimplementedOrderServer) ApiSupply(context.Context, *ApiSupplyRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApiSupply not implemented")
|
||||
}
|
||||
@@ -776,6 +794,24 @@ func _Order_UpdateOrderPayStatus_Handler(srv interface{}, ctx context.Context, d
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Order_ExistByStoreProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ExistByStoreProductReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OrderServer).ExistByStoreProduct(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Order_ExistByStoreProduct_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OrderServer).ExistByStoreProduct(ctx, req.(*ExistByStoreProductReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Order_ApiSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ApiSupplyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1091,6 +1127,10 @@ var Order_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "UpdateOrderPayStatus",
|
||||
Handler: _Order_UpdateOrderPayStatus_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ExistByStoreProduct",
|
||||
Handler: _Order_ExistByStoreProduct_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ApiSupply",
|
||||
Handler: _Order_ApiSupply_Handler,
|
||||
|
||||
Reference in New Issue
Block a user