This commit is contained in:
2025-05-07 18:02:53 +08:00
parent 9a9fd29e1e
commit 084e7b8bbb
14 changed files with 78 additions and 33 deletions

View File

@@ -91,19 +91,23 @@
<option value="PostgreSql">PostgreSQL</option>
</select>
</div>
<div class="form-group" >
<div class="form-group" x-show="data.databaseType && data.databaseType=='MySql'">
<label>数据库版本:</label>
<input type="text" class="form-control" x-model="data.databaseVersion" placeholder="请填写数据库版本,如 8.4.5">
</div>
<div class="form-group">
<label>数据库地址:</label>
<input type="text" class="form-control" x-model="data.databaseServer" placeholder="请输入您的数据库地址">
</div>
<div class="form-group" >
<div class="form-group">
<label>数据库用户名:</label>
<input type="text" class="form-control" x-model="data.databaseUser" placeholder="请输入您的数据库用户名">
</div>
<div class="form-group" >
<div class="form-group">
<label>数据库密码:</label>
<input type="text" class="form-control" x-model="data.databasePassword" placeholder="请输入您的数据库密码">
</div>
<div class="form-group" >
<div class="form-group">
<label>数据库名称:</label>
<input type="text" class="form-control" x-model="data.databaseName" placeholder="请输入您的数据库名称">
</div>

View File

@@ -1,6 +1,4 @@
using Microsoft.AspNetCore.Http;
namespace Yes.Blog
namespace Yes.Blog
{
public static class DependencyInjection
{

View File

@@ -1,7 +1,4 @@

using Yes.Application.Installs;
namespace Yes.Blog.Endpoints.Blogs
{
public class InstallEndpoint : BlogEndpointScheme, IEndpoint
@@ -11,6 +8,7 @@ namespace Yes.Blog.Endpoints.Blogs
public record Request(
string DatabaseType,
string DatabaseServer,
string DatabaseVersion,
string DatabaseUser,
string DatabasePassword,
string DatabaseName,

View File

@@ -42,3 +42,6 @@ global using Yes.Infrastructure.Authorizations;
global using Yes.Infrastructure.Middlewares;
global using Yes.Infrastructure.ViewEngine;
global using IResult = Yes.Domain.Core.Models.IResult;
global using Yes.Application.Installs;
global using Scalar.AspNetCore;

View File

@@ -1,7 +1,3 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Models;
using Scalar.AspNetCore;
namespace Yes.Blog
{