2026-03-18 13:47:34 +08:00

15 lines
412 B
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace YD_Event.Application.Organization.Dtos;
/// <summary>
/// 机构映射配置
/// </summary>
public class Mapper : IRegister
{
public void Register(TypeAdapterConfig config)
{
//机构映射为下拉选项
config.ForType<SysOrganization, TreeSelectOutput>()
.Map(dest => dest.Value, src => src.Id)
.Map(dest => dest.Label, src => src.Name);
}
}