You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
2.9 KiB
33 lines
2.9 KiB
using AutoMapper;
|
|
using SBF.Model.Db;
|
|
using SBF.Model.Dto;
|
|
|
|
namespace SBF.Model
|
|
{
|
|
public class MappingProfiles : Profile
|
|
{
|
|
public MappingProfiles()
|
|
{
|
|
CreateMap<Sbf_TrusteeshipTask, TrusteeshipTaskResponse>().ForPath(t => t.Product.Id, opt => opt.MapFrom(f => f.SpuId))
|
|
.ForPath(t => t.Product.MainSkuId, opt => opt.MapFrom(f => f.MainSkuId))
|
|
.ForPath(t => t.Product.Platform, opt => opt.MapFrom(f => f.Platform))
|
|
.ForPath(t => t.Product.ProductItemNum, opt => opt.MapFrom(f => f.ProductItemNum))
|
|
.ForPath(t => t.Product.ShopId, opt => opt.MapFrom(f => f.ShopId))
|
|
.ForPath(t => t.Product.State, opt => opt.MapFrom(f => f.ProductState))
|
|
.ForPath(t => t.Product.CreateTime, opt => opt.MapFrom(f => f.ProductCreateTime))
|
|
.ForPath(t => t.Product.Stage, opt => opt.MapFrom(f => f.Stage))
|
|
.ForPath(t => t.Product.State, opt => opt.MapFrom(f => f.ProductState))
|
|
.ForPath(t => t.Product.Title, opt => opt.MapFrom(f => f.ProductTitle))
|
|
.ForPath(t => t.ProductSku.Id, opt => opt.MapFrom(f => f.SkuId))
|
|
.ForPath(t => t.ProductSku.CategoryName, opt => opt.MapFrom(f => f.CategoryName))
|
|
.ForPath(t => t.ProductSku.ProductId, opt => opt.MapFrom(f => f.SpuId))
|
|
.ForPath(t => t.ProductSku.Price, opt => opt.MapFrom(f => f.Price))
|
|
.ForPath(t => t.ProductSku.ShopId, opt => opt.MapFrom(f => f.ShopId))
|
|
.ForPath(t => t.ProductSku.Logo, opt => opt.MapFrom(f => f.Logo))
|
|
.ForPath(t => t.ProductSku.State, opt => opt.MapFrom(f => f.SkuState))
|
|
.ForPath(t => t.ProductSku.Platform, opt => opt.MapFrom(f => f.Platform))
|
|
.ForPath(t => t.ProductSku.CreateTime, opt => opt.MapFrom(f => f.SkuCreateTime))
|
|
.ForPath(t => t.ProductSku.Title, opt => opt.MapFrom(f => f.SkuTitle));
|
|
}
|
|
}
|
|
}
|
|
|