1
dengjunjie
2025-06-19 fbc6fae6c793220d0b67ac603ce9bbf22837de79
项目代码/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();
        }
    }
}