style: 修改codegen命名
This commit is contained in:
@@ -105,15 +105,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.TenantManageme
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.TenantManagement.Application.Contracts", "module\tenant-management\Yi.Framework.TenantManagement.Application.Contracts\Yi.Framework.TenantManagement.Application.Contracts.csproj", "{FA735055-CBDD-4EFD-B84B-85810DA1425E}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "code-gun", "code-gun", "{4FFE7212-21F2-476D-B628-3C65E6C5075E}"
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "code-gen", "code-gen", "{4FFE7212-21F2-476D-B628-3C65E6C5075E}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.CodeGun.Application", "module\code-gun\Yi.Framework.CodeGun.Application\Yi.Framework.CodeGun.Application.csproj", "{97EC40D7-DBFA-467A-98CB-221AF27B14F2}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.CodeGen.Application", "module\code-gen\Yi.Framework.Codegen.Application\Yi.Framework.CodeGen.Application.csproj", "{97EC40D7-DBFA-467A-98CB-221AF27B14F2}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.CodeGun.Application.Contracts", "module\code-gun\Yi.Framework.CodeGun.Application.Contracts\Yi.Framework.CodeGun.Application.Contracts.csproj", "{882BC563-2F75-4B95-AC96-F4BF23F5E69D}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.CodeGen.Application.Contracts", "module\code-gen\Yi.Framework.Codegen.Application.Contracts\Yi.Framework.CodeGen.Application.Contracts.csproj", "{882BC563-2F75-4B95-AC96-F4BF23F5E69D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.CodeGun.Domain", "module\code-gun\Yi.Framework.CodeGun.Domain\Yi.Framework.CodeGun.Domain.csproj", "{85CB8517-2B80-42D8-B954-081079AC9BA0}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.CodeGen.Domain", "module\code-gen\Yi.Framework.Codegen.Domain\Yi.Framework.CodeGen.Domain.csproj", "{85CB8517-2B80-42D8-B954-081079AC9BA0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.CodeGun.Domain.Shared", "module\code-gun\Yi.Framework.CodeGun.Domain.Shared\Yi.Framework.CodeGun.Domain.Shared.csproj", "{EEFF0F05-2709-4151-A8CE-667935CEAE0B}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.CodeGen.Domain.Shared", "module\code-gen\Yi.Framework.Codegen.Domain.Shared\Yi.Framework.CodeGen.Domain.Shared.csproj", "{EEFF0F05-2709-4151-A8CE-667935CEAE0B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
||||
@@ -5,18 +5,18 @@ using Yi.Framework.AuditLogging.Domain.Repositories;
|
||||
using Yi.Framework.AuditLogging.SqlSugarCore.Repositories;
|
||||
using Yi.Framework.SqlSugarCore;
|
||||
|
||||
namespace Yi.AuditLogging.SqlSugarCore
|
||||
namespace Yi.Framework.AuditLogging.SqlSugarCore
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(YiFrameworkAuditLoggingDomainModule),
|
||||
|
||||
|
||||
typeof(YiFrameworkSqlSugarCoreModule))]
|
||||
public class YiFrameworkAuditLoggingSqlSugarCoreModule : AbpModule
|
||||
{
|
||||
public override void ConfigureServices(ServiceConfigurationContext context)
|
||||
{
|
||||
{
|
||||
context.Services.AddTransient<IAuditLogRepository, SqlSugarCoreAuditLogRepository>();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Yi.Framework.CodeGun.Domain.Shared.Enums;
|
||||
using Yi.Framework.CodeGen.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.Dtos.Field
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.Dtos.Field
|
||||
{
|
||||
public class FieldDto : EntityDto<Guid>
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.Dtos.Field
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.Dtos.Field
|
||||
{
|
||||
public class FieldGetListInput : PagedAndSortedResultRequestDto
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Field;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.Dtos.Field;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.Dtos.Table
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.Dtos.Table
|
||||
{
|
||||
public class TableDto : EntityDto<Guid>
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.Dtos.Table
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.Dtos.Table
|
||||
{
|
||||
public class TableGetListInput : PagedAndSortedResultRequestDto
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.Dtos.Template
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.Dtos.Template
|
||||
{
|
||||
public class TemplateDto : EntityDto<Guid>
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.Dtos.Template
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.Dtos.Template
|
||||
{
|
||||
public class TemplateGetListInput : PagedAndSortedResultRequestDto
|
||||
{
|
||||
@@ -0,0 +1,8 @@
|
||||
using Volo.Abp.Application.Services;
|
||||
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.IServices
|
||||
{
|
||||
public interface ICodeGenService : IApplicationService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Field;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.Dtos.Field;
|
||||
using Yi.Framework.Ddd.Application.Contracts;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.IServices
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.IServices
|
||||
{
|
||||
public interface IFieldService : IYiCrudAppService<FieldDto, Guid, FieldGetListInput>
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Table;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.Dtos.Table;
|
||||
using Yi.Framework.Ddd.Application.Contracts;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.IServices
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.IServices
|
||||
{
|
||||
public interface ITableService : IYiCrudAppService<TableDto, Guid, TableGetListInput>
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Template;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.Dtos.Template;
|
||||
using Yi.Framework.Ddd.Application.Contracts;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.IServices
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts.IServices
|
||||
{
|
||||
public interface ITemplateService : IYiCrudAppService<TemplateDto, Guid, TemplateGetListInput>
|
||||
{
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\framework\Yi.Framework.Ddd.Application.Contracts\Yi.Framework.Ddd.Application.Contracts.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGun.Domain.Shared\Yi.Framework.CodeGun.Domain.Shared.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGen.Domain.Shared\Yi.Framework.CodeGen.Domain.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
using Yi.Framework.CodeGen.Domain.Shared;
|
||||
using Yi.Framework.Ddd.Application.Contracts;
|
||||
|
||||
namespace Yi.Framework.CodeGen.Application.Contracts
|
||||
{
|
||||
[DependsOn(typeof(YiFrameworkCodeGenDomainSharedModule),
|
||||
typeof(YiFrameworkDddApplicationContractsModule))]
|
||||
public class YiFrameworkCodeGenApplicationContractsModule : AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3,22 +3,22 @@ using System.Runtime.InteropServices;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Volo.Abp.Application.Services;
|
||||
using Volo.Abp.Uow;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGun.Domain.Managers;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Domain.Managers;
|
||||
using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Services
|
||||
namespace Yi.Framework.CodeGen.Application.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// CodeGun
|
||||
/// CodeGen
|
||||
/// </summary>
|
||||
public class CodeGunService : ApplicationService, ICodeGunService
|
||||
public class CodeGenService : ApplicationService, ICodeGenService
|
||||
{
|
||||
private ISqlSugarRepository<TableAggregateRoot, Guid> _tableRepository;
|
||||
private CodeFileManager _codeFileManager;
|
||||
private WebTemplateManager _webTemplateManager;
|
||||
public CodeGunService(ISqlSugarRepository<TableAggregateRoot, Guid> tableRepository, CodeFileManager codeFileManager, WebTemplateManager webTemplateManager)
|
||||
public CodeGenService(ISqlSugarRepository<TableAggregateRoot, Guid> tableRepository, CodeFileManager codeFileManager, WebTemplateManager webTemplateManager)
|
||||
{
|
||||
_tableRepository = tableRepository;
|
||||
_codeFileManager = codeFileManager;
|
||||
@@ -80,8 +80,8 @@ namespace Yi.Framework.CodeGun.Application.Services
|
||||
/// 打开目录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("code-gun/dir/{**path}")]
|
||||
public async Task PostDir([FromRoute]string path)
|
||||
[HttpPost("code-gen/dir/{**path}")]
|
||||
public async Task PostDir([FromRoute] string path)
|
||||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
@@ -6,14 +6,14 @@ using Newtonsoft.Json.Linq;
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Volo.Abp.Domain.Repositories;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Field;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGun.Domain.Shared.Enums;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.Dtos.Field;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Domain.Shared.Enums;
|
||||
using Yi.Framework.Ddd.Application;
|
||||
using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Services
|
||||
namespace Yi.Framework.CodeGen.Application.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// 字段管理
|
||||
@@ -1,11 +1,11 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Volo.Abp.Domain.Repositories;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Table;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.Dtos.Table;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
using Yi.Framework.Ddd.Application;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Services
|
||||
namespace Yi.Framework.CodeGen.Application.Services
|
||||
{
|
||||
public class TableService : YiCrudAppService<TableAggregateRoot, TableDto, Guid, TableGetListInput>, ITableService
|
||||
{
|
||||
@@ -1,16 +1,16 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Template;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.Dtos.Template;
|
||||
using Yi.Framework.CodeGen.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
using Yi.Framework.Ddd.Application;
|
||||
using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Services;
|
||||
namespace Yi.Framework.CodeGen.Application.Services;
|
||||
|
||||
public class TemplateService : YiCrudAppService<TemplateEntity, TemplateDto, Guid, TemplateGetListInput>, ITemplateService
|
||||
{
|
||||
{
|
||||
private ISqlSugarRepository<TemplateEntity, Guid> _repository;
|
||||
public TemplateService(ISqlSugarRepository<TemplateEntity, Guid> repository) : base(repository)
|
||||
{
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\framework\Yi.Framework.Ddd.Application\Yi.Framework.Ddd.Application.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGun.Application.Contracts\Yi.Framework.CodeGun.Application.Contracts.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGun.Domain\Yi.Framework.CodeGun.Domain.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGen.Application.Contracts\Yi.Framework.CodeGen.Application.Contracts.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGen.Domain\Yi.Framework.CodeGen.Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,14 @@
|
||||
using Yi.Framework.CodeGen.Application.Contracts;
|
||||
using Yi.Framework.CodeGen.Domain;
|
||||
using Yi.Framework.Ddd.Application;
|
||||
|
||||
namespace Yi.Framework.CodeGen.Application
|
||||
{
|
||||
[DependsOn(typeof(YiFrameworkCodeGenApplicationContractsModule),
|
||||
typeof(YiFrameworkCodeGenDomainModule),
|
||||
typeof(YiFrameworkDddApplicationModule))]
|
||||
public class YiFrameworkCodeGenApplicationModule : AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Shared.Enums
|
||||
namespace Yi.Framework.CodeGen.Domain.Shared.Enums
|
||||
{
|
||||
public enum FieldTypeEnum
|
||||
{
|
||||
@@ -1,10 +1,10 @@
|
||||
using Volo.Abp.Domain;
|
||||
using Volo.Abp.Modularity;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Shared
|
||||
namespace Yi.Framework.CodeGen.Domain.Shared
|
||||
{
|
||||
[DependsOn(typeof(AbpDddDomainSharedModule))]
|
||||
public class YiFrameworkCodeGunDomainSharedModule:AbpModule
|
||||
public class YiFrameworkCodeGenDomainSharedModule : AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Domain.Entities;
|
||||
using Yi.Framework.CodeGun.Domain.Shared.Enums;
|
||||
using Yi.Framework.CodeGen.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Entities
|
||||
namespace Yi.Framework.CodeGen.Domain.Entities
|
||||
{
|
||||
[SugarTable("YiField")]
|
||||
public class FieldEntity : Entity<Guid>
|
||||
@@ -1,7 +1,7 @@
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Domain.Entities;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Entities
|
||||
namespace Yi.Framework.CodeGen.Domain.Entities
|
||||
{
|
||||
[SugarTable("YiTable")]
|
||||
public class TableAggregateRoot : AggregateRoot<Guid>
|
||||
@@ -1,7 +1,7 @@
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Domain.Entities;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Entities
|
||||
namespace Yi.Framework.CodeGen.Domain.Entities
|
||||
{
|
||||
[SugarTable("YiTemplate")]
|
||||
public class TemplateEntity : Entity<Guid>
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using Yi.Framework.CodeGun.Domain.Shared.Enums;
|
||||
using Yi.Framework.CodeGen.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Handlers
|
||||
namespace Yi.Framework.CodeGen.Domain.Handlers
|
||||
{
|
||||
public class FieldTemplateHandler : TemplateHandlerBase, ITemplateHandler
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Handlers
|
||||
namespace Yi.Framework.CodeGen.Domain.Handlers
|
||||
{
|
||||
public class HandledTemplate
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using Volo.Abp.DependencyInjection;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Handlers
|
||||
namespace Yi.Framework.CodeGen.Domain.Handlers
|
||||
{
|
||||
public interface ITemplateHandler: ISingletonDependency
|
||||
public interface ITemplateHandler : ISingletonDependency
|
||||
{
|
||||
void SetTable(TableAggregateRoot table);
|
||||
HandledTemplate Invoker(string str, string path);
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Yi.Framework.CodeGun.Domain.Handlers
|
||||
namespace Yi.Framework.CodeGen.Domain.Handlers
|
||||
{
|
||||
public class ModelTemplateHandler : TemplateHandlerBase, ITemplateHandler
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Yi.Framework.CodeGun.Domain.Handlers
|
||||
namespace Yi.Framework.CodeGen.Domain.Handlers
|
||||
{
|
||||
public class NameSpaceTemplateHandler : TemplateHandlerBase, ITemplateHandler
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Handlers
|
||||
namespace Yi.Framework.CodeGen.Domain.Handlers
|
||||
{
|
||||
public class TemplateHandlerBase
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using Volo.Abp.Domain.Services;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGun.Domain.Handlers;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Domain.Handlers;
|
||||
using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Managers
|
||||
namespace Yi.Framework.CodeGen.Domain.Managers
|
||||
{
|
||||
/// <summary>
|
||||
/// 代码文件领域服务,与代码文件生成相关,web to code
|
||||
@@ -1,6 +1,6 @@
|
||||
using Volo.Abp.Domain.Services;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Managers
|
||||
namespace Yi.Framework.CodeGen.Domain.Managers
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库领域服务,与数据库相关,同步到数据库,web to db ,code to db
|
||||
@@ -2,11 +2,11 @@
|
||||
using System.Reflection;
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Domain.Services;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
using Yi.Framework.CodeGun.Domain.Shared.Enums;
|
||||
using Yi.Framework.CodeGen.Domain.Entities;
|
||||
using Yi.Framework.CodeGen.Domain.Shared.Enums;
|
||||
using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Managers
|
||||
namespace Yi.Framework.CodeGen.Domain.Managers
|
||||
{
|
||||
/// <summary>
|
||||
/// 与webfrist相关,同步到web,code to web
|
||||
@@ -18,7 +18,7 @@ namespace Yi.Framework.CodeGun.Domain.Managers
|
||||
public WebTemplateManager(ISqlSugarRepository<TableAggregateRoot> repository, IModuleContainer moduleContainer)
|
||||
{
|
||||
_repository = repository;
|
||||
_moduleContainer= moduleContainer;
|
||||
_moduleContainer = moduleContainer;
|
||||
}
|
||||
/// <summary>
|
||||
/// 通过当前的实体代码获取表存储
|
||||
@@ -17,6 +17,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\framework\Yi.Framework.SqlSugarCore.Abstractions\Yi.Framework.SqlSugarCore.Abstractions.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGun.Domain.Shared\Yi.Framework.CodeGun.Domain.Shared.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.CodeGen.Domain.Shared\Yi.Framework.CodeGen.Domain.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,14 +1,14 @@
|
||||
using Volo.Abp.Domain;
|
||||
using Volo.Abp.Modularity;
|
||||
using Yi.Framework.CodeGun.Domain.Shared;
|
||||
using Yi.Framework.CodeGen.Domain.Shared;
|
||||
using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain
|
||||
namespace Yi.Framework.CodeGen.Domain
|
||||
{
|
||||
[DependsOn(typeof(YiFrameworkCodeGunDomainSharedModule),
|
||||
[DependsOn(typeof(YiFrameworkCodeGenDomainSharedModule),
|
||||
typeof(AbpDddDomainModule),
|
||||
typeof(YiFrameworkSqlSugarCoreAbstractionsModule))]
|
||||
public class YiFrameworkCodeGunDomainModule : AbpModule
|
||||
public class YiFrameworkCodeGenDomainModule : AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
using Volo.Abp.Application.Services;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts.IServices
|
||||
{
|
||||
public interface ICodeGunService : IApplicationService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using Yi.Framework.CodeGun.Domain.Shared;
|
||||
using Yi.Framework.Ddd.Application.Contracts;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application.Contracts
|
||||
{
|
||||
[DependsOn(typeof(YiFrameworkCodeGunDomainSharedModule),
|
||||
typeof(YiFrameworkDddApplicationContractsModule))]
|
||||
public class YiFrameworkCodeGunApplicationContractsModule:AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using Yi.Framework.CodeGun.Application.Contracts;
|
||||
using Yi.Framework.CodeGun.Domain;
|
||||
using Yi.Framework.Ddd.Application;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Application
|
||||
{
|
||||
[DependsOn(typeof(YiFrameworkCodeGunApplicationContractsModule),
|
||||
typeof(YiFrameworkCodeGunDomainModule),
|
||||
typeof(YiFrameworkDddApplicationModule))]
|
||||
public class YiFrameworkCodeGunApplicationModule : AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,9 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Volo.Abp.Data;
|
||||
using Volo.Abp.DependencyInjection;
|
||||
using Volo.Abp.MultiTenancy;
|
||||
|
||||
namespace Volo.Abp.MultiTenancy;
|
||||
namespace Yi.Framework.TenantManagement.Domain;
|
||||
|
||||
[Dependency(ReplaceServices = true)]
|
||||
public class YiMultiTenantConnectionStringResolver : DefaultConnectionStringResolver
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\framework\Yi.Framework.Ddd.Application\Yi.Framework.Ddd.Application.csproj" />
|
||||
<ProjectReference Include="..\..\module\bbs\Yi.Framework.Bbs.Application\Yi.Framework.Bbs.Application.csproj" />
|
||||
<ProjectReference Include="..\..\module\code-gun\Yi.Framework.CodeGun.Application\Yi.Framework.CodeGun.Application.csproj" />
|
||||
<ProjectReference Include="..\..\module\code-gen\Yi.Framework.CodeGen.Application\Yi.Framework.CodeGen.Application.csproj" />
|
||||
<ProjectReference Include="..\..\module\rbac\Yi.Framework.Rbac.Application\Yi.Framework.Rbac.Application.csproj" />
|
||||
<ProjectReference Include="..\..\module\tenant-management\Yi.Framework.TenantManagement.Application\Yi.Framework.TenantManagement.Application.csproj" />
|
||||
<ProjectReference Include="..\Yi.Abp.Application.Contracts\Yi.Abp.Application.Contracts.csproj" />
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using Volo.Abp.Modularity;
|
||||
using Yi.Abp.Application.Contracts;
|
||||
using Yi.Abp.Application.Contracts;
|
||||
using Yi.Abp.Domain;
|
||||
using Yi.Framework.Bbs.Application;
|
||||
using Yi.Framework.CodeGun.Application;
|
||||
using Yi.Framework.CodeGen.Application;
|
||||
using Yi.Framework.Ddd.Application;
|
||||
using Yi.Framework.Rbac.Application;
|
||||
using Yi.Framework.TenantManagement.Application;
|
||||
@@ -17,7 +16,7 @@ namespace Yi.Abp.Application
|
||||
typeof(YiFrameworkRbacApplicationModule),
|
||||
typeof(YiFrameworkBbsApplicationModule),
|
||||
typeof(YiFrameworkTenantManagementApplicationModule),
|
||||
typeof(YiFrameworkCodeGunApplicationModule),
|
||||
typeof(YiFrameworkCodeGenApplicationModule),
|
||||
|
||||
typeof(YiFrameworkDddApplicationModule)
|
||||
)]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using Volo.Abp.Modularity;
|
||||
using Yi.Abp.Domain;
|
||||
using Yi.Abp.SqlSugarCore;
|
||||
using Yi.AuditLogging.SqlSugarCore;
|
||||
using Yi.Framework.AuditLogging.SqlSugarCore;
|
||||
using Yi.Framework.Bbs.SqlSugarCore;
|
||||
using Yi.Framework.Mapster;
|
||||
using Yi.Framework.Rbac.SqlSugarCore;
|
||||
|
||||
@@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Cors;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Microsoft.OpenApi.Models;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using Volo.Abp;
|
||||
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
|
||||
using Volo.Abp.AspNetCore.MultiTenancy;
|
||||
using Volo.Abp.AspNetCore.Mvc;
|
||||
@@ -13,7 +12,6 @@ using Volo.Abp.AspNetCore.Serilog;
|
||||
using Volo.Abp.Auditing;
|
||||
using Volo.Abp.Autofac;
|
||||
using Volo.Abp.Caching;
|
||||
using Volo.Abp.Modularity;
|
||||
using Volo.Abp.MultiTenancy;
|
||||
using Volo.Abp.Swashbuckle;
|
||||
using Yi.Abp.Application;
|
||||
@@ -25,7 +23,7 @@ using Yi.Framework.AspNetCore.Authentication.OAuth.QQ;
|
||||
using Yi.Framework.AspNetCore.Microsoft.AspNetCore.Builder;
|
||||
using Yi.Framework.AspNetCore.Microsoft.Extensions.DependencyInjection;
|
||||
using Yi.Framework.Bbs.Application;
|
||||
using Yi.Framework.CodeGun.Application;
|
||||
using Yi.Framework.CodeGen.Application;
|
||||
using Yi.Framework.Rbac.Application;
|
||||
using Yi.Framework.Rbac.Domain.Authorization;
|
||||
using Yi.Framework.Rbac.Domain.Shared.Consts;
|
||||
@@ -75,7 +73,7 @@ namespace Yi.Abp.Web
|
||||
options.ConventionalControllers.Create(typeof(YiFrameworkRbacApplicationModule).Assembly, options => options.RemoteServiceName = "rbac");
|
||||
options.ConventionalControllers.Create(typeof(YiFrameworkBbsApplicationModule).Assembly, options => options.RemoteServiceName = "bbs");
|
||||
options.ConventionalControllers.Create(typeof(YiFrameworkTenantManagementApplicationModule).Assembly, options => options.RemoteServiceName = "tenant-management");
|
||||
options.ConventionalControllers.Create(typeof(YiFrameworkCodeGunApplicationModule).Assembly, options => options.RemoteServiceName = "code-gun");
|
||||
options.ConventionalControllers.Create(typeof(YiFrameworkCodeGenApplicationModule).Assembly, options => options.RemoteServiceName = "code-gun");
|
||||
});
|
||||
|
||||
//设置api格式
|
||||
|
||||
BIN
Yi.Abp.Net8/src/Yi.Abp.Web/yi-abp-dev.db
Normal file
BIN
Yi.Abp.Net8/src/Yi.Abp.Web/yi-abp-dev.db
Normal file
Binary file not shown.
Reference in New Issue
Block a user