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() .Map(d => d.ToContactId, s => s.CreatedUserId); config.ForType() .Map(d => d.Id, s => s.CreatedUserId); config.ForType () .Map(d => d.Value, s => s.Id) .Map(d=>d.Label,s=>s.PositionName); config.ForType() .Map(d => d.Value, s => s.region_id) .Map(d => d.Label, s => s.region_name); } } }