feat: 添加webfirst字段生成器

This commit is contained in:
陈淳
2023-09-22 10:25:05 +08:00
parent 8a90f9d089
commit a15a374fb0
31 changed files with 327 additions and 247 deletions

View File

@@ -16,7 +16,7 @@ namespace Yi.Framework.Module.WebFirstManager.Impl
/// 字段管理
/// </summary>
[ApiDescriptionSettings("WebFirstManager")]
public class FieldService:CrudAppService<FieldEntity,FieldGetOutDto,FieldGetListOutputDto,long,FieldGetListInput,FieldCreateInput,FieldUpdateInput> ,IFieldService,ITransient,IDynamicApiController
public class FieldService:CrudAppService<FieldEntity, FieldDto,long, FieldGetListInput> ,IFieldService,ITransient,IDynamicApiController
{
}
}

View File

@@ -6,11 +6,15 @@ using System.Threading.Tasks;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Mvc;
using Yi.Framework.Infrastructure.Ddd.Services;
using Yi.Framework.Module.WebFirstManager.Dtos.Table;
using Yi.Framework.Module.WebFirstManager.Dtos.Template;
using Yi.Framework.Module.WebFirstManager.Entities;
namespace Yi.Framework.Module.WebFirstManager.Impl
{
[ApiDescriptionSettings("WebFirstManager")]
public class TableService:ITableService, ITransient,IDynamicApiController
public class TableService : CrudAppService<TableEntity, TableDto, long, TableGetListInput> ,ITableService, ITransient, IDynamicApiController
{
}
}

View File

@@ -6,11 +6,14 @@ using System.Threading.Tasks;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Mvc;
using Yi.Framework.Infrastructure.Ddd.Services;
using Yi.Framework.Module.WebFirstManager.Dtos.Template;
using Yi.Framework.Module.WebFirstManager.Entities;
namespace Yi.Framework.Module.WebFirstManager.Impl
{
[ApiDescriptionSettings("WebFirstManager")]
public class TemplateService: ITemplateService, IDynamicApiController, ITransient
public class TemplateService : CrudAppService<TemplateEntity, TemplateDto, long, TemplateGetListInput>, ITemplateService, IDynamicApiController, ITransient
{
}
}

View File

@@ -28,10 +28,10 @@ namespace Yi.Framework.Module.WebFirstManager.Impl
}
/// <summary>
/// 一键构建生成代码
/// Web To Code
/// </summary>
/// <returns></returns>
public async Task PostBuildCodeAsync()
public async Task PostWebBuildCodeAsync()
{
//获取全部表
var tables = await _tableRepository.GetListAsync();
@@ -44,10 +44,27 @@ namespace Yi.Framework.Module.WebFirstManager.Impl
/// <summary>
/// 一键构建生成表
/// Web To Db
/// </summary>
/// <returns></returns>
public async Task PostBuildTableAsync()
public async Task PostWebBuildDbAsync()
{
}
/// <summary>
/// Code To Web
/// </summary>
/// <returns></returns>
public async Task PostCodeBuildWebAsync()
{
}
/// <summary>
/// Code To Db
/// </summary>
/// <returns></returns>
public async Task PostCodeBuildDbAsync()
{
}
}