2026-08-09 10:43:45 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2026-08-09 15:10:19 +08:00
// - protoc-gen-go-grpc v1.6.2
2026-08-09 18:40:36 +08:00
// - protoc v7.35.1
2026-08-09 15:10:19 +08:00
// source: module/ec/order/proto/summary.proto
2026-08-09 10:43:45 +08:00
package order
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
const (
Summary_QuickCreateByProduct_FullMethodName = "/order.Summary/QuickCreateByProduct"
Summary_Submit_FullMethodName = "/order.Summary/Submit"
Summary_Check_FullMethodName = "/order.Summary/Check"
Summary_Get_FullMethodName = "/order.Summary/Get"
Summary_List_FullMethodName = "/order.Summary/List"
Summary_Confirm_FullMethodName = "/order.Summary/Confirm"
Summary_Cancel_FullMethodName = "/order.Summary/Cancel"
Summary_SimulatePay_FullMethodName = "/order.Summary/SimulatePay"
Summary_SimulateShipments_FullMethodName = "/order.Summary/SimulateShipments"
Summary_SimulateReceiving_FullMethodName = "/order.Summary/SimulateReceiving"
)
// SummaryClient is the client API for Summary service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
//
// Order(订单)微服务-订单模块
// C端模块
type SummaryClient interface {
// 快速创建一个店铺订单
2026-08-09 20:14:57 +08:00
QuickCreateByProduct ( ctx context . Context , in * QuickCreateByProductRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 将购物车的数据提交生成订单
2026-08-09 20:14:57 +08:00
Submit ( ctx context . Context , in * SubmitRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 检测是否有未确认及付款的订单
2026-08-09 20:14:57 +08:00
Check ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取一个订单的详情数据
2026-08-09 20:14:57 +08:00
Get ( ctx context . Context , in * OrderIdentRequest , opts ... grpc . CallOption ) ( * SummaryGetReply , error )
2026-08-09 10:43:45 +08:00
// 根据不同的类型获取我的订单列表
List ( ctx context . Context , in * SummaryListRequest , opts ... grpc . CallOption ) ( * SummaryListReply , error )
// 确认订单,物流,优惠卷等其它信息
Confirm ( ctx context . Context , in * ConfirmRequest , opts ... grpc . CallOption ) ( * ConfirmReply , error )
// 取消订单
2026-08-09 20:14:57 +08:00
Cancel ( ctx context . Context , in * CancelRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 模拟支付
2026-08-09 20:14:57 +08:00
SimulatePay ( ctx context . Context , in * SimulatePayRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 模拟发货
2026-08-09 20:14:57 +08:00
SimulateShipments ( ctx context . Context , in * SimulateShipmentsRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 模拟收货
2026-08-09 20:14:57 +08:00
SimulateReceiving ( ctx context . Context , in * OrderIdentRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
}
type summaryClient struct {
cc grpc . ClientConnInterface
}
func NewSummaryClient ( cc grpc . ClientConnInterface ) SummaryClient {
return & summaryClient { cc }
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) QuickCreateByProduct ( ctx context . Context , in * QuickCreateByProductRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( OrderStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Summary_QuickCreateByProduct_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) Submit ( ctx context . Context , in * SubmitRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( OrderStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Summary_Submit_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) Check ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * OrderStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( OrderStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Summary_Check_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) Get ( ctx context . Context , in * OrderIdentRequest , opts ... grpc . CallOption ) ( * SummaryGetReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( SummaryGetReply )
err := c . cc . Invoke ( ctx , Summary_Get_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * summaryClient ) List ( ctx context . Context , in * SummaryListRequest , opts ... grpc . CallOption ) ( * SummaryListReply , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( SummaryListReply )
err := c . cc . Invoke ( ctx , Summary_List_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * summaryClient ) Confirm ( ctx context . Context , in * ConfirmRequest , opts ... grpc . CallOption ) ( * ConfirmReply , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( ConfirmReply )
err := c . cc . Invoke ( ctx , Summary_Confirm_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) Cancel ( ctx context . Context , in * CancelRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( OrderStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Summary_Cancel_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) SimulatePay ( ctx context . Context , in * SimulatePayRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( OrderStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Summary_SimulatePay_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) SimulateShipments ( ctx context . Context , in * SimulateShipmentsRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( OrderStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Summary_SimulateShipments_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * summaryClient ) SimulateReceiving ( ctx context . Context , in * OrderIdentRequest , opts ... grpc . CallOption ) ( * OrderStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( OrderStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Summary_SimulateReceiving_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
// SummaryServer is the server API for Summary service.
2026-08-09 15:10:19 +08:00
// All implementations should embed UnimplementedSummaryServer
2026-08-09 10:43:45 +08:00
// for forward compatibility.
//
// Order(订单)微服务-订单模块
// C端模块
type SummaryServer interface {
// 快速创建一个店铺订单
2026-08-09 20:14:57 +08:00
QuickCreateByProduct ( context . Context , * QuickCreateByProductRequest ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 将购物车的数据提交生成订单
2026-08-09 20:14:57 +08:00
Submit ( context . Context , * SubmitRequest ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 检测是否有未确认及付款的订单
2026-08-09 20:14:57 +08:00
Check ( context . Context , * Empty ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取一个订单的详情数据
2026-08-09 20:14:57 +08:00
Get ( context . Context , * OrderIdentRequest ) ( * SummaryGetReply , error )
2026-08-09 10:43:45 +08:00
// 根据不同的类型获取我的订单列表
List ( context . Context , * SummaryListRequest ) ( * SummaryListReply , error )
// 确认订单,物流,优惠卷等其它信息
Confirm ( context . Context , * ConfirmRequest ) ( * ConfirmReply , error )
// 取消订单
2026-08-09 20:14:57 +08:00
Cancel ( context . Context , * CancelRequest ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 模拟支付
2026-08-09 20:14:57 +08:00
SimulatePay ( context . Context , * SimulatePayRequest ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 模拟发货
2026-08-09 20:14:57 +08:00
SimulateShipments ( context . Context , * SimulateShipmentsRequest ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
// 模拟收货
2026-08-09 20:14:57 +08:00
SimulateReceiving ( context . Context , * OrderIdentRequest ) ( * OrderStatusReply , error )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
// UnimplementedSummaryServer should be embedded to have
2026-08-09 10:43:45 +08:00
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedSummaryServer struct { }
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) QuickCreateByProduct ( context . Context , * QuickCreateByProductRequest ) ( * OrderStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method QuickCreateByProduct not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) Submit ( context . Context , * SubmitRequest ) ( * OrderStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Submit not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) Check ( context . Context , * Empty ) ( * OrderStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Check not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) Get ( context . Context , * OrderIdentRequest ) ( * SummaryGetReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Get not implemented" )
2026-08-09 10:43:45 +08:00
}
func ( UnimplementedSummaryServer ) List ( context . Context , * SummaryListRequest ) ( * SummaryListReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method List not implemented" )
2026-08-09 10:43:45 +08:00
}
func ( UnimplementedSummaryServer ) Confirm ( context . Context , * ConfirmRequest ) ( * ConfirmReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Confirm not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) Cancel ( context . Context , * CancelRequest ) ( * OrderStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Cancel not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) SimulatePay ( context . Context , * SimulatePayRequest ) ( * OrderStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method SimulatePay not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) SimulateShipments ( context . Context , * SimulateShipmentsRequest ) ( * OrderStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method SimulateShipments not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedSummaryServer ) SimulateReceiving ( context . Context , * OrderIdentRequest ) ( * OrderStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method SimulateReceiving not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedSummaryServer ) testEmbeddedByValue ( ) { }
2026-08-09 10:43:45 +08:00
// UnsafeSummaryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SummaryServer will
// result in compilation errors.
type UnsafeSummaryServer interface {
mustEmbedUnimplementedSummaryServer ( )
}
func RegisterSummaryServer ( s grpc . ServiceRegistrar , srv SummaryServer ) {
2026-08-09 15:10:19 +08:00
// If the following call panics, it indicates UnimplementedSummaryServer was
2026-08-09 10:43:45 +08:00
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t , ok := srv . ( interface { testEmbeddedByValue ( ) } ) ; ok {
t . testEmbeddedByValue ( )
}
s . RegisterService ( & Summary_ServiceDesc , srv )
}
func _Summary_QuickCreateByProduct_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( QuickCreateByProductRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . QuickCreateByProduct ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_QuickCreateByProduct_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SummaryServer ) . QuickCreateByProduct ( ctx , req . ( * QuickCreateByProductRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_Submit_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SubmitRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . Submit ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_Submit_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SummaryServer ) . Submit ( ctx , req . ( * SubmitRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_Check_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( Empty )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . Check ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_Check_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( SummaryServer ) . Check ( ctx , req . ( * Empty ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_Get_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( OrderIdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . Get ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_Get_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( SummaryServer ) . Get ( ctx , req . ( * OrderIdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_List_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SummaryListRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . List ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_List_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SummaryServer ) . List ( ctx , req . ( * SummaryListRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_Confirm_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ConfirmRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . Confirm ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_Confirm_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SummaryServer ) . Confirm ( ctx , req . ( * ConfirmRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_Cancel_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CancelRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . Cancel ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_Cancel_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SummaryServer ) . Cancel ( ctx , req . ( * CancelRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_SimulatePay_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SimulatePayRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . SimulatePay ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_SimulatePay_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SummaryServer ) . SimulatePay ( ctx , req . ( * SimulatePayRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_SimulateShipments_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SimulateShipmentsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . SimulateShipments ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_SimulateShipments_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SummaryServer ) . SimulateShipments ( ctx , req . ( * SimulateShipmentsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Summary_SimulateReceiving_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( OrderIdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SummaryServer ) . SimulateReceiving ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Summary_SimulateReceiving_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( SummaryServer ) . SimulateReceiving ( ctx , req . ( * OrderIdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
// Summary_ServiceDesc is the grpc.ServiceDesc for Summary service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Summary_ServiceDesc = grpc . ServiceDesc {
ServiceName : "order.Summary" ,
HandlerType : ( * SummaryServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "QuickCreateByProduct" ,
Handler : _Summary_QuickCreateByProduct_Handler ,
} ,
{
MethodName : "Submit" ,
Handler : _Summary_Submit_Handler ,
} ,
{
MethodName : "Check" ,
Handler : _Summary_Check_Handler ,
} ,
{
MethodName : "Get" ,
Handler : _Summary_Get_Handler ,
} ,
{
MethodName : "List" ,
Handler : _Summary_List_Handler ,
} ,
{
MethodName : "Confirm" ,
Handler : _Summary_Confirm_Handler ,
} ,
{
MethodName : "Cancel" ,
Handler : _Summary_Cancel_Handler ,
} ,
{
MethodName : "SimulatePay" ,
Handler : _Summary_SimulatePay_Handler ,
} ,
{
MethodName : "SimulateShipments" ,
Handler : _Summary_SimulateShipments_Handler ,
} ,
{
MethodName : "SimulateReceiving" ,
Handler : _Summary_SimulateReceiving_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
2026-08-09 15:10:19 +08:00
Metadata : "module/ec/order/proto/summary.proto" ,
2026-08-09 10:43:45 +08:00
}