This commit is contained in:
2025-05-07 16:15:05 +08:00
parent 85772cb43a
commit ab7ae290f0
13 changed files with 26 additions and 41 deletions

View File

@@ -1,7 +1,6 @@

namespace Yes.Application.Admins.Installs
namespace Yes.Application.Installs
{
public class FileService:IFileService
public class FileService : IFileService
{
public void CopyFolder(string sources, string dest)
{

View File

@@ -1,22 +1,21 @@
namespace Yes.Application.Admins.Installs
namespace Yes.Application.Installs
{
public record InstallCommand(
string DatabaseType,
string DatabaseServer,
string DatabaseVersion,
string DatabaseUser,
string DatabasePassword,
string DatabaseName,
bool UseDefaultAdmin
) : IRequest<InstallCommandResponse>;
public record InstallCommandResponse(bool Success,string ErrorMessage="");
public record InstallCommandResponse(bool Success, string ErrorMessage = "");
public class InstallCommandHandler(
IConnectionStringProvider connectionStringProvider,
IMigratorProvider migratorProvider,
IConnectionStringProvider connectionStringProvider,
IMigratorProvider migratorProvider,
IWebHostEnvironment env,
IConfigurationService configurationService,
IConfigurationService configurationService,
IFileService fileService,
IOptionsMonitor<BlogSettings> options) : IRequestHandler<InstallCommand, InstallCommandResponse>
{

View File

@@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="Mapster.DependencyInjection" Version="1.0.1" />
<PackageReference Include="Qiniu" Version="8.7.0" />
<PackageReference Include="MediatR" Version="12.4.1" />
<PackageReference Include="MediatR" Version="12.5.0" />
</ItemGroup>
<ItemGroup>