fix: align backend APIs and upload flow

This commit is contained in:
2026-09-15 14:10:55 +08:00
parent 32177a7293
commit 53e6195938
149 changed files with 4791 additions and 435 deletions
@@ -1,4 +1,4 @@
using FluentValidation;
using FluentValidation;
using FluentValidation.AspNetCore;
using IM.ASPNETCore;
using IM.Commons;
@@ -14,6 +14,7 @@ using RedLockNet.SERedis.Configuration;
using StackExchange.Redis;
using Swashbuckle.AspNetCore.SwaggerGen;
using Winton.Extensions.Configuration.Consul;
using IM.InitCommon.Management;
namespace IM.InitCommon
{
@@ -21,7 +22,7 @@ namespace IM.InitCommon
{
public static void ConfigureDbConfiguration(this WebApplicationBuilder builder)
{
builder.Host.ConfigureAppConfiguration((hostCtx, configbuilder) =>
if (!builder.Configuration.GetValue("Consul:Enabled", true)) return; builder.Host.ConfigureAppConfiguration((hostCtx, configbuilder) =>
{
var env = hostCtx.HostingEnvironment;
@@ -66,6 +67,7 @@ namespace IM.InitCommon
{
var services = builder.Services;
var configuration = builder.Configuration;
services.AddManagementRuntime();
var assemblies = ReflectionHelper.GetAllReferencedAssemblies();