28 lines
899 B
C#
28 lines
899 B
C#
|
using Syc.Basic.Web.Dtos.Dict;
|
|||
|
using Syc.Basic.Web.WMS.Entitys;
|
|||
|
using Syc.Basic.Web.WMS;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Syc.Basic.Web.Mapper
|
|||
|
{
|
|||
|
public class SystemMapper: WMSApplicationAutoMapperProfile
|
|||
|
{
|
|||
|
public SystemMapper()
|
|||
|
{
|
|||
|
CreateMap<DataDictionary,DictionaryInfoDto>()
|
|||
|
.ForMember(dest => dest.createdAt,opt => opt.MapFrom(m => m.Createtime))
|
|||
|
.ForMember(dest => dest.desc,opt => opt.MapFrom(m => m.Description))
|
|||
|
.ReverseMap();
|
|||
|
|
|||
|
CreateMap<DictItemDto, DictionaryItems>()
|
|||
|
.ForMember(dest => dest.DictionaryCode,opt => opt.MapFrom(m => m.dictCode))
|
|||
|
.ForMember(dest => dest.Createtime,opt => opt.MapFrom(m => m.createdAt))
|
|||
|
.ReverseMap();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|