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

import (
	"context"
	"bsm/full/module/ec/mall/internal/logic/freight"
	pb "bsm/full/module/ec/mall/pb"
)

type FreightServer struct {
	pb.UnimplementedFreightServer
}

func NewFreightServer() *FreightServer {
	return &FreightServer{}
}

// 运费模板列表
func (s *FreightServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.FreightReply, error) {
	return freight.Fetch(ctx, in)
}

// 运费模板修改
func (s *FreightServer) Modify(ctx context.Context, in *pb.FreightItem) (*pb.StatusReply, error) {
	return freight.Modify(ctx, in)
}

// 运费模板删除
func (s *FreightServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
	return freight.Delete(ctx, in)
}

// 运费模板创建
func (s *FreightServer) Create(ctx context.Context, in *pb.FreightItem) (*pb.StatusReply, error) {
	return freight.Create(ctx, in)
}

// 运费模板详情
func (s *FreightServer) Detail(ctx context.Context, in *pb.IdentRequest) (*pb.FreightItem, error) {
	return freight.Detail(ctx, in)
}

// 限制区域列表
func (s *FreightServer) DenyRegionFetch(ctx context.Context, in *pb.FetchRequest) (*pb.DenyRegionReply, error) {
	return freight.DenyRegionFetch(ctx, in)
}

// 新建限制区域
func (s *FreightServer) DenyRegionCreate(ctx context.Context, in *pb.DenyRegionItem) (*pb.StatusReply, error) {
	return freight.DenyRegionCreate(ctx, in)
}

// 移除限制区域
func (s *FreightServer) DenyRegionDelete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
	return freight.DenyRegionDelete(ctx, in)
}

// 编辑限制区域
func (s *FreightServer) DenyRegionModify(ctx context.Context, in *pb.DenyRegionItem) (*pb.StatusReply, error) {
	return freight.DenyRegionModify(ctx, in)
}
