This commit is contained in:
cjd
2025-11-04 21:09:16 +08:00
parent 8260e293c7
commit bb90a020dc
592 changed files with 61749 additions and 27 deletions

View File

@@ -0,0 +1,21 @@
using AutoMapper;
using DouyinApi.AutoMapper;
using Microsoft.Extensions.DependencyInjection;
using System;
namespace DouyinApi.Extensions
{
/// <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();
}
}
}