步步为盈
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.

40 lines
2.1 KiB

3 years ago
using AutoMapper;
namespace BBWY.Client.Models
{
public class MappingProfile : Profile
{
public MappingProfile()
{
CreateMap<OrderDropShippingResponse, OrderDropShipping>();
3 years ago
CreateMap<OrderCostDetailResponse, OrderCostDetail>();
CreateMap<OrderCouponResponse, OrderCoupon>();
CreateMap<OrderCostResponse, OrderCost>();
CreateMap<ConsigneeResponse, Consignee>();
3 years ago
CreateMap<AfterSaleOrderResponse, AfterSaleOrder>();
3 years ago
CreateMap<OrderResponse, Order>();
CreateMap<OrderSkuResponse, OrderSku>().ForMember(t => t.ProductItemNum, opt => opt.MapFrom(f => f.ProductNo));
3 years ago
CreateMap<AuditPayBillResponse, AuditPayBill>();
3 years ago
CreateMap<MDSUserResponse, User>().ForMember(t => t.TeamId, opt => opt.MapFrom(f => f.DepartmentId))
.ForMember(t => t.TeamName, opt => opt.MapFrom(f => f.DepartmentName))
.ForMember(t => t.Name, opt => opt.MapFrom(f => f.UserName));
CreateMap<ShopResponse, Shop>().ForMember(t => t.VenderType, opt => opt.MapFrom(f => f.ShopType))
.ForMember(t => t.Platform, opt => opt.MapFrom(f => f.PlatformId))
.ForMember(t => t.PurchaseAccountList, opt => opt.MapFrom(f => f.PurchaseList));
CreateMap<PurchaseAccountResponse, PurchaseAccount>();
CreateMap<DepartmentResponse, Department>();
3 years ago
CreateMap<PurchaseOrderResponse, PurchaseOrder>();
CreateMap<ToDayOrderAchievementResponse, ToDayOrderAchievement>();
3 years ago
CreateMap<SDGroupPersonStatisticsResponse, SDGroupPersonStatistics>();
3 years ago
CreateMap<BillCorrectionOrderResponse, BillCorrectionOrder>();
CreateMap<ServiceOrderItemResponse, ServiceOrder>();
2 years ago
CreateMap<ProductSkuWithSchemeResponse, ProductSkuWithScheme>();
2 years ago
CreateMap<PurchaseOrderV2Response, PurchaseOrderV2>();
CreateMap<PurchaseOrderSkuResponse, PurchaseOrderSku>();
3 years ago
}
}
}