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.
|
|
|
|
using GDZZ.Application.Entity;
|
|
|
|
|
using Mapster;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace GDZZ.Application.Mapper
|
|
|
|
|
{
|
|
|
|
|
public class Mapper : IRegister
|
|
|
|
|
{
|
|
|
|
|
public void Register(TypeAdapterConfig config)
|
|
|
|
|
{
|
|
|
|
|
config.ForType<LiveMessage, LiveMessageList>()
|
|
|
|
|
.Map(d => d.ToContactId, s => s.CreatedUserId);
|
|
|
|
|
|
|
|
|
|
config.ForType<LiveHistoryContacts, LiveHistoryLists>()
|
|
|
|
|
.Map(d => d.Id, s => s.CreatedUserId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|