feat:搭建yi-abp tool框架
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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.Application.Contracts.Dtos
|
||||
{
|
||||
public class TemplateGenCreateInputDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据库提供者
|
||||
/// </summary>
|
||||
public DbmsEnum Dbms { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 需要替换的字符串内容
|
||||
/// </summary>
|
||||
public Dictionary<string, string> ReplaceStrData { get; set; }=new Dictionary<string, string>();
|
||||
|
||||
public void SetNameReplace()
|
||||
{
|
||||
ReplaceStrData.Add("Yi.Abp", Name);
|
||||
ReplaceStrData.Add("YiAbp", Name.Replace(".", ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Yi.Abp.Tool.Application.Contracts.Dtos;
|
||||
|
||||
namespace Yi.Abp.Tool.Application.Contracts
|
||||
{
|
||||
public interface ITemplateGenService
|
||||
{
|
||||
Task<IActionResult> CreateModuleAsync(TemplateGenCreateInputDto moduleCreateInputDto);
|
||||
Task<IActionResult> CreateProjectAsync(TemplateGenCreateInputDto moduleCreateInputDto);
|
||||
}
|
||||
}
|
||||
@@ -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="..\Yi.Abp.Tool.Domain.Shared\Yi.Abp.Tool.Domain.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
using Yi.Abp.Tool.Domain.Shared;
|
||||
|
||||
namespace Yi.Abp.Tool.Application.Contracts
|
||||
{
|
||||
[DependsOn(typeof(YiAbpToolDomainSharedModule))]
|
||||
public class YiAbpToolApplicationContractsModule:AbpModule
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user