代码拉取完成,页面将自动刷新
// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using Gardener.Core.CodeGeneration.Impl.Services;
using Gardener.Core.CodeGeneration.Services;
using Gardener.Core.Module;
using Microsoft.Extensions.DependencyInjection;
namespace Gardener.Core.CodeGeneration.Impl
{
/// <summary>
/// 代码生成
/// </summary>
public static class CodeGenerationExtensions
{
/// <summary>
/// 添加代码生成
/// </summary>
/// <param name="services"></param>
/// <param name="enableAutoVerification"></param>
/// <returns></returns>
public static IServiceCollection AddCodeGeneration(this IServiceCollection services, bool enableAutoVerification = true)
{
services.AddSingleton<IServerModule, CodeGenerationServerModule>();
services.AddScoped<IEntityConfigService, EntityConfigService>();
services.AddScoped<IFieldConfigService, FieldConfigService>();
services.AddRestController<CodeGenerationService>();
services.AddRestController<EntityConfigService>();
services.AddRestController<FieldConfigService>();
services.AddRestController<GenerateTemplateService>();
return services;
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。