Merge branch 'v1.0.5' of https://codeup.aliyun.com/62ce7bca487c500c27f70a79/OPS/WMS-Api into v1.0.5
This commit is contained in:
16
src/WMS.Web.Domain/Mappers/SerialNumbersMapper.cs
Normal file
16
src/WMS.Web.Domain/Mappers/SerialNumbersMapper.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using AutoMapper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using WMS.Web.Domain.Entitys;
|
||||
|
||||
namespace WMS.Web.Domain.Mappers
|
||||
{
|
||||
public class SerialNumbersMapper : Profile
|
||||
{
|
||||
public SerialNumbersMapper()
|
||||
{
|
||||
CreateMap<SerialNumbers_Ops, SerialNumbers>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,11 @@ namespace WMS.Web.Domain.Mappers
|
||||
CreateMap<SubscribeNotification, SubscribeNotification>();
|
||||
CreateMap<SaveSubscribeNotificationRequest, SubscribeNotification>();
|
||||
CreateMap<EditSubscribeNotificationRequest, SubscribeNotification>();
|
||||
CreateMap<SubscribeNotification, SubscribeNotificationInfoResponse>()
|
||||
.ForMember(x => x.Emails, ops => ops.MapFrom(x => string.Join(",", x.Emails)))
|
||||
.ForMember(x => x.Telephones, ops => ops.MapFrom(x => string.Join(",", x.Telephones)));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user