调整接口优化

This commit is contained in:
tongfei
2023-10-30 16:07:12 +08:00
parent fef6a72439
commit abb381aa0e
5 changed files with 41 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using WMS.Web.Core.Dto.InStock;
using WMS.Web.Core.Dto.InStockTask;
using WMS.Web.Domain.Entitys;
namespace WMS.Web.Domain.Mappers
{
/// <summary>
/// 入库相关-映射
/// </summary>
public class InStockMapper: Profile
{
public InStockMapper()
{
CreateMap<UpdateInStockTaskRequest, InStockTask>()
.ForMember(x => x.Details, opt => opt.Ignore())
.ReverseMap();
CreateMap<UpdateInStockTaskDetailsRequest, InStockTaskDetails>().ReverseMap();
CreateMap<SaveInStockDetailsRequest, InStockDetails>().ReverseMap();
}
}
}