|
|
|
@ -4,6 +4,7 @@ using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace GDZZ.Application.Mapper
|
|
|
|
@ -13,6 +14,7 @@ namespace GDZZ.Application.Mapper
|
|
|
|
|
public void Register(TypeAdapterConfig config)
|
|
|
|
|
{
|
|
|
|
|
config.ForType<LiveMessage, LiveMessageList>()
|
|
|
|
|
.Map(d => d.Content, s => s.Type != "text" ?s.Content: Regex.Unescape(s.Content))
|
|
|
|
|
.Map(d => d.ToContactId, s => s.CreatedUserId);
|
|
|
|
|
|
|
|
|
|
config.ForType<LiveHistoryContacts, LiveHistoryLists>()
|
|
|
|
|