67 lines
2.1 KiB
Go
67 lines
2.1 KiB
Go
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
package server
|
|
|
|
import (
|
|
"bsm/full/module/ec/order/internal/logic/summary"
|
|
pb "bsm/full/module/ec/order/pb"
|
|
"context"
|
|
)
|
|
|
|
type SummaryServer struct {
|
|
pb.UnimplementedSummaryServer
|
|
}
|
|
|
|
func NewSummaryServer() *SummaryServer {
|
|
return &SummaryServer{}
|
|
}
|
|
|
|
// 快速创建一个店铺订单
|
|
func (s *SummaryServer) QuickCreateByProduct(ctx context.Context, in *pb.QuickCreateByProductRequest) (*pb.OrderStatusReply, error) {
|
|
return summary.QuickCreateByProduct(ctx, in)
|
|
}
|
|
|
|
// 将购物车的数据提交生成订单
|
|
func (s *SummaryServer) Submit(ctx context.Context, in *pb.SubmitRequest) (*pb.OrderStatusReply, error) {
|
|
return summary.Submit(ctx, in)
|
|
}
|
|
|
|
// 检测是否有未确认及付款的订单
|
|
func (s *SummaryServer) Check(ctx context.Context, in *pb.Empty) (*pb.OrderStatusReply, error) {
|
|
return summary.Check(ctx, in)
|
|
}
|
|
|
|
// 获取一个订单的详情数据
|
|
func (s *SummaryServer) Get(ctx context.Context, in *pb.OrderIdentRequest) (*pb.SummaryGetReply, error) {
|
|
return summary.Get(ctx, in)
|
|
}
|
|
|
|
// 根据不同的类型获取我的订单列表
|
|
func (s *SummaryServer) List(ctx context.Context, in *pb.SummaryListRequest) (*pb.SummaryListReply, error) {
|
|
return summary.List(ctx, in)
|
|
}
|
|
|
|
// 确认订单,物流,优惠卷等其它信息
|
|
func (s *SummaryServer) Confirm(ctx context.Context, in *pb.ConfirmRequest) (*pb.ConfirmReply, error) {
|
|
return summary.Confirm(ctx, in)
|
|
}
|
|
|
|
// 取消订单
|
|
func (s *SummaryServer) Cancel(ctx context.Context, in *pb.CancelRequest) (*pb.OrderStatusReply, error) {
|
|
return summary.Cancel(ctx, in)
|
|
}
|
|
|
|
// 模拟支付
|
|
func (s *SummaryServer) SimulatePay(ctx context.Context, in *pb.SimulatePayRequest) (*pb.OrderStatusReply, error) {
|
|
return summary.SimulatePay(ctx, in)
|
|
}
|
|
|
|
// 模拟发货
|
|
func (s *SummaryServer) SimulateShipments(ctx context.Context, in *pb.SimulateShipmentsRequest) (*pb.OrderStatusReply, error) {
|
|
return summary.SimulateShipments(ctx, in)
|
|
}
|
|
|
|
// 模拟收货
|
|
func (s *SummaryServer) SimulateReceiving(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderStatusReply, error) {
|
|
return summary.SimulateReceiving(ctx, in)
|
|
}
|