2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/ec/order/internal/logic/mgt"
|
|
|
|
|
pb "bsm/full/module/ec/order/pb"
|
2026-08-09 20:14:57 +08:00
|
|
|
"context"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type MgtServer struct {
|
|
|
|
|
pb.UnimplementedMgtServer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewMgtServer() *MgtServer {
|
|
|
|
|
return &MgtServer{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建订单
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MgtServer) OrderCreate(ctx context.Context, in *pb.CreateOrderRequest) (*pb.OrderStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return mgt.OrderCreate(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改订单
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MgtServer) OrderModify(ctx context.Context, in *pb.OrderSummaryItem) (*pb.OrderStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return mgt.OrderModify(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取一个订单的详情数据
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MgtServer) OrderGet(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderGetReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return mgt.OrderGet(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 根据不同的类型获取店铺的订单列表
|
|
|
|
|
func (s *MgtServer) OrderListByStore(ctx context.Context, in *pb.OrderListByStoreRequest) (*pb.OrderListByStoreReply, error) {
|
|
|
|
|
return mgt.OrderListByStore(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 取消订单
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MgtServer) OrderCancel(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return mgt.OrderCancel(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 退货
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MgtServer) OrderReturnable(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return mgt.OrderReturnable(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 订单审批
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MgtServer) OrderApprove(ctx context.Context, in *pb.OrderIdentRequest) (*pb.OrderStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return mgt.OrderApprove(ctx, in)
|
|
|
|
|
}
|