// Code generated by protoc-gen-slc. DO NOT EDIT.
package server

import (
	"bsm/full/module/ec/order/internal/logic/mgt"
	pb "bsm/full/module/ec/order/pb"
	"context"
)

type MgtServer struct {
	pb.UnimplementedMgtServer
}

func NewMgtServer() *MgtServer {
	return &MgtServer{}
}

// 创建订单
func (s *MgtServer) OrderCreate(ctx context.Context, in *pb.CreateOrderRequest) (*pb.OrderStatusReply, error) {
	return mgt.OrderCreate(ctx, in)
}

// 修改订单
func (s *MgtServer) OrderModify(ctx context.Context, in *pb.OrderSummaryItem) (*pb.OrderStatusReply, error) {
	return mgt.OrderModify(ctx, in)
}

// 获取一个订单的详情数据
func (s *MgtServer) OrderGet(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderGetReply, error) {
	return mgt.OrderGet(ctx, in)
}

// 根据不同的类型获取店铺的订单列表
func (s *MgtServer) OrderListByStore(ctx context.Context, in *pb.OrderListByStoreRequest) (*pb.OrderListByStoreReply, error) {
	return mgt.OrderListByStore(ctx, in)
}

// 取消订单
func (s *MgtServer) OrderCancel(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderStatusReply, error) {
	return mgt.OrderCancel(ctx, in)
}

// 退货
func (s *MgtServer) OrderReturnable(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderStatusReply, error) {
	return mgt.OrderReturnable(ctx, in)
}

// 订单审批
func (s *MgtServer) OrderApprove(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderStatusReply, error) {
	return mgt.OrderApprove(ctx, in)
}
