| 123456789101112131415161718192021 |
- namespace Util
- {
- public class ModelVoAdapt
- {
- public static void Map()
- {
- // TypeAdapterConfig<AppModule, GetAppModuleListVo>.NewConfig()
- // .Map(dest => dest.systemSupport, src => string.IsNullOrEmpty(src.systemSupport)
- // ? Array.Empty<string>()
- // : src.systemSupport.Split(',', StringSplitOptions.RemoveEmptyEntries));
- // TypeAdapterConfig<AddApiInfoDto, ApiInfo>.NewConfig()
- // .Map(dest => dest.apiParam, src => src.apiParam == null
- // ? new List<ApiParamObject>()
- // : Newtonsoft.Json.JsonConvert.DeserializeObject<List<ApiParamObject>>(src.apiParam));
-
- }
- }
- }
|