9dd13ed7
wwk
备份
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using NCC.Common.Helper;
using NCC.Common.Model;
using NCC.Blind.Entitys.Dto.TbAreaLine;
using Mapster;
using System.Collections.Generic;
namespace NCC.Blind.Entitys.Mapper.TbAreaLine
{
public class Mapper : IRegister
{
public void Register(TypeAdapterConfig config)
{
config.ForType<TbAreaLineCrInput, TbAreaLineEntity>()
.Map(dest => dest.Banner, src => src.banner.ToJson())
;
config.ForType<TbAreaLineEntity, TbAreaLineInfoOutput>()
.Map(dest => dest.banner, src => src.Banner.ToObject<List<FileControlsModel>>())
;
}
}
}
|