dengjunjie
2025-05-20 be484c84a25d1f6c769e7b5e958048d745942e55
项目代码/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();
        }
    }
}