namespace YD_Event.Application.Event.Dtos; public class Mapper : IRegister { public void Register(TypeAdapterConfig config) { // 配置EventInfo到EventDetailOutput的映射 config.ForType(); // 配置EventInfo到UserEventDetailOutput的映射 config.ForType(); } }