mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-06-19 18:28:17 +08:00
refactor: ♻️ bizServer 更名为 AdmServer (#104)
This commit is contained in:
@ -2,6 +2,6 @@
|
||||
<Import Project="$(SolutionDir)/build/code.quality.props"/>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../NetAdmin.SysComponent.Cache/NetAdmin.SysComponent.Cache.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.BizServer.Application/NetAdmin.BizServer.Application.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.AdmServer.Application/NetAdmin.AdmServer.Application.csproj"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,6 +1,6 @@
|
||||
using Spectre.Console.Cli;
|
||||
|
||||
namespace NetAdmin.BizServer.Host;
|
||||
namespace NetAdmin.AdmServer.Host;
|
||||
|
||||
/// <summary>
|
||||
/// 命令行参数
|
@ -1,4 +1,4 @@
|
||||
namespace NetAdmin.BizServer.Host.Extensions;
|
||||
namespace NetAdmin.AdmServer.Host.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// ApplicationBuilder 扩展方法
|
||||
@ -9,7 +9,7 @@ namespace NetAdmin.BizServer.Host.Extensions;
|
||||
public static class IApplicationBuilderExtensions
|
||||
{
|
||||
private const string _INDEX_HTML_PATH = ".index.html";
|
||||
private const string _RES_PFX = $"{nameof(NetAdmin)}.{nameof(BizServer)}.{nameof(Host)}.UI";
|
||||
private const string _RES_PFX = $"{nameof(NetAdmin)}.{nameof(AdmServer)}.{nameof(Host)}.UI";
|
||||
private static readonly Regex _regex = new(@"\.(\w+)$", RegexOptions.Compiled);
|
||||
private static IEnumerable<string> _allResNames;
|
||||
|
@ -1,10 +1,10 @@
|
||||
using NetAdmin.BizServer.Host.Filters;
|
||||
using NetAdmin.AdmServer.Host.Filters;
|
||||
using NetAdmin.Domain.Contexts;
|
||||
using NetAdmin.Domain.DbMaps.Dependency.Fields;
|
||||
using NetAdmin.Domain.Enums.Sys;
|
||||
using NetAdmin.Host.Extensions;
|
||||
|
||||
namespace NetAdmin.BizServer.Host.Extensions;
|
||||
namespace NetAdmin.AdmServer.Host.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// ServiceCollection 扩展方法
|
@ -1,7 +1,7 @@
|
||||
using NetAdmin.Domain.Contexts;
|
||||
using NetAdmin.SysComponent.Cache.Sys.Dependency;
|
||||
|
||||
namespace NetAdmin.BizServer.Host.Filters;
|
||||
namespace NetAdmin.AdmServer.Host.Filters;
|
||||
|
||||
/// <inheritdoc />
|
||||
[SuppressSniffer]
|
@ -6,7 +6,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../NetAdmin.SysComponent.Host/NetAdmin.SysComponent.Host.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.BizServer.Cache/NetAdmin.BizServer.Cache.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.AdmServer.Cache/NetAdmin.AdmServer.Cache.csproj"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Update="*.json">
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||
"profiles": {
|
||||
"NetAdmin.BizServer.Host": {
|
||||
"NetAdmin.AdmServer.Host": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"commandLineArgs": "-is",
|
@ -1,5 +1,5 @@
|
||||
using NetAdmin.BizServer.Host;
|
||||
using NetAdmin.BizServer.Host.Extensions;
|
||||
using NetAdmin.AdmServer.Host;
|
||||
using NetAdmin.AdmServer.Host.Extensions;
|
||||
using NetAdmin.Host.Extensions;
|
||||
using NetAdmin.Host.Middlewares;
|
||||
using NetAdmin.SysComponent.Host.Extensions;
|
||||
@ -11,7 +11,7 @@ using Prometheus;
|
||||
|
||||
NetAdmin.Host.Startup.Entry<Startup>(args);
|
||||
|
||||
namespace NetAdmin.BizServer.Host
|
||||
namespace NetAdmin.AdmServer.Host
|
||||
{
|
||||
/// <summary>
|
||||
/// 启动类
|
@ -2,7 +2,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Net.Http.Json;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
using NetAdmin.Application.Modules;
|
||||
using NetAdmin.BizServer.Host;
|
||||
using NetAdmin.AdmServer.Host;
|
||||
using NetAdmin.Domain.Dto.Dependency;
|
||||
using NetAdmin.Domain.Dto.Sys.Api;
|
||||
using NetAdmin.Domain.Dto.Sys.Cache;
|
||||
@ -13,7 +13,7 @@ using NetAdmin.Tests;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace NetAdmin.BizServer.Tests;
|
||||
namespace NetAdmin.AdmServer.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// 所有测试
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../NetAdmin.Tests/NetAdmin.Tests.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.BizServer.Host/NetAdmin.BizServer.Host.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.AdmServer.Host/NetAdmin.AdmServer.Host.csproj"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0-release-24177-07"/>
|
@ -15,8 +15,8 @@ public enum ModuleTypes
|
||||
,
|
||||
|
||||
/// <summary>
|
||||
/// 业务模块
|
||||
/// 管理模块
|
||||
/// </summary>
|
||||
[ResourceDescription<Ln>(nameof(Ln.业务模块))]
|
||||
BizServer = 2
|
||||
[ResourceDescription<Ln>(nameof(Ln.管理模块))]
|
||||
AdmServer = 2
|
||||
}
|
@ -57,9 +57,9 @@
|
||||
"XmlComments": [
|
||||
"FreeSql.xml",
|
||||
"NetAdmin.Application.xml",
|
||||
"NetAdmin.BizServer.Application.xml",
|
||||
"NetAdmin.BizServer.Cache.xml",
|
||||
"NetAdmin.BizServer.Host.xml",
|
||||
"NetAdmin.AdmServer.Application.xml",
|
||||
"NetAdmin.AdmServer.Cache.xml",
|
||||
"NetAdmin.AdmServer.Host.xml",
|
||||
"NetAdmin.Cache.xml",
|
||||
"NetAdmin.Domain.xml",
|
||||
"NetAdmin.Host.xml",
|
||||
|
@ -2,7 +2,7 @@
|
||||
<Import Project="$(SolutionDir)/build/code.quality.props"/>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../NetAdmin.Host/NetAdmin.Host.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.BizServer.Cache/NetAdmin.BizServer.Cache.csproj"/>
|
||||
<ProjectReference Include="../NetAdmin.AdmServer.Cache/NetAdmin.AdmServer.Cache.csproj"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Update="*.json">
|
||||
|
@ -24,7 +24,7 @@ public sealed class DevService(IApiService apiService) : ServiceBase<DevService>
|
||||
{
|
||||
req.ThrowIfInvalid();
|
||||
|
||||
// 模块类型(Sys、Biz、等)
|
||||
// 模块类型(Sys、Adm、等)
|
||||
var moduleType = Enum.GetName(req.Type)!;
|
||||
|
||||
// 模板层目录
|
||||
|
Reference in New Issue
Block a user