1
This commit is contained in:
@@ -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)
|
||||
{
|
||||
@@ -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>
|
||||
{
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user