feat:搭建yi-abp tool框架
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Abp.Tool.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Abp.Tool.Domain.Shared.Dtos
|
||||
{
|
||||
public class TemplateGenCreateDto
|
||||
{
|
||||
public void SetTemplateFilePath(string templateFilePath)
|
||||
{
|
||||
this.TemplateFilePath = templateFilePath;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 模板文件路径
|
||||
/// </summary>
|
||||
public string TemplateFilePath { get; set; }
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据库提供者
|
||||
/// </summary>
|
||||
public DbmsEnum Dbms { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 需要替换的字符串内容
|
||||
/// </summary>
|
||||
public Dictionary<string, string> ReplaceStrData { get; set; }
|
||||
}
|
||||
}
|
||||
17
Yi.Abp.Net8/tool/Yi.Abp.Tool.Domain.Shared/Enums/DbmsEnum.cs
Normal file
17
Yi.Abp.Net8/tool/Yi.Abp.Tool.Domain.Shared/Enums/DbmsEnum.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Abp.Tool.Domain.Shared.Enums
|
||||
{
|
||||
public enum DbmsEnum
|
||||
{
|
||||
MySQL,
|
||||
SQLite,
|
||||
SQLServer,
|
||||
Oracle,
|
||||
PostgreSQL
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Abp.Tool.Domain.Shared.Options
|
||||
{
|
||||
public class ToolOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 模块模板zip文件路径
|
||||
/// </summary>
|
||||
public string ModuleTemplateFilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目模板zip文件路径
|
||||
/// </summary>
|
||||
public string ProjectTemplateFilePath { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 临时文件目录
|
||||
/// </summary>
|
||||
public string TempDirPath { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Import Project="..\..\common.props" />
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\framework\Yi.Framework.Core\Yi.Framework.Core.csproj" />
|
||||
<ProjectReference Include="..\..\framework\Yi.Framework.Mapster\Yi.Framework.Mapster.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
using Yi.Framework.Core;
|
||||
|
||||
namespace Yi.Abp.Tool.Domain.Shared
|
||||
{
|
||||
[DependsOn(typeof(YiFrameworkCoreModule))]
|
||||
public class YiAbpToolDomainSharedModule : AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user