using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SegmentationInStore.Rpc.Dto;

namespace SegmentationInStore.Rpc
{
  public static class Ext
  {
    public static SegmentationInStoreDto EToSegmentationInStore(this SegmentationWeightRecord record)
    {
      var instore=new SegmentationInStoreDto();
      instore.BarCode = record.BarCode;
      instore.Goods_ID = record.Goods_ID;
      instore.Goods_Name = record.Goods_Name;
      instore.Goods_Spec = record.Goods_Spec;
      instore.Weight = record.JingWeight;
      return instore;
    }
  }
}
