1
dengjunjie
2025-02-18 b2ad000e07e1c87d3561b5aa94fdc88c779872f0
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Filter/AutoMapperSetup.cs
对比新文件
@@ -0,0 +1,16 @@
锘縩amespace WIDESEA_WMSServer.Filter
{
    /// <summary>
    /// Automapper 鍚姩鏈嶅姟
    /// </summary>
    public static class AutoMapperSetup
    {
        public static void AddAutoMapperSetup(this IServiceCollection services)
        {
            if (services == null) throw new ArgumentNullException(nameof(services));
            services.AddAutoMapper(typeof(AutoMapperConfig));
            AutoMapperConfig.RegisterMappings();
        }
    }
}