From 312767d94421769f33701d7781491de8249abb8e Mon Sep 17 00:00:00 2001
From: root <295172551@qq.com>
Date: Sat, 14 Jun 2025 01:59:55 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=BD=91=E7=BB=9C?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD=EF=BC=8C?=
=?UTF-8?q?=E5=8C=85=E6=8B=AC=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=9A=84?=
=?UTF-8?q?=E5=A4=8D=E5=88=B6=E9=80=BB=E8=BE=91=E5=92=8C=E8=B7=AF=E5=BE=84?=
=?UTF-8?q?=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...reateNetworkConfigurationCommandHandler.cs | 36 -------------------
.../Entities/NetworkConfiguration.cs | 4 +--
2 files changed, 2 insertions(+), 38 deletions(-)
diff --git a/CoreAgent.Application/Handlers/NetworkConfig/Commands/CreateNetworkConfigurationCommandHandler.cs b/CoreAgent.Application/Handlers/NetworkConfig/Commands/CreateNetworkConfigurationCommandHandler.cs
index e4373cc..72d7325 100644
--- a/CoreAgent.Application/Handlers/NetworkConfig/Commands/CreateNetworkConfigurationCommandHandler.cs
+++ b/CoreAgent.Application/Handlers/NetworkConfig/Commands/CreateNetworkConfigurationCommandHandler.cs
@@ -8,42 +8,6 @@ using MediatR;
namespace CoreAgent.Application.Handlers.NetworkConfig.Commands
{
- ///
- /// 创建网络配置命令
- ///
- public class CreateNetworkConfigurationCommand : IRequest
- {
- ///
- /// 配置键值
- ///
- public string ConfigKey { get; set; }
-
- ///
- /// RAN配置文件路径
- ///
- public string RagConfig { get; set; }
-
- ///
- /// 核心网和IMS配置列表
- ///
- public List CoreOrImsConfigs { get; set; }
-
- ///
- /// APN配置
- ///
- public string Apn { get; set; }
-
- ///
- /// 频段配置
- ///
- public List Band { get; set; }
-
- ///
- /// 配置说明
- ///
- public string Comment { get; set; }
- }
-
///
/// 创建网络配置命令处理器
///
diff --git a/CoreAgent.Domain/Entities/NetworkConfiguration.cs b/CoreAgent.Domain/Entities/NetworkConfiguration.cs
index e68be2d..0a17737 100644
--- a/CoreAgent.Domain/Entities/NetworkConfiguration.cs
+++ b/CoreAgent.Domain/Entities/NetworkConfiguration.cs
@@ -181,7 +181,7 @@ namespace CoreAgent.Domain.Entities
/// 核心网配置文件路径
///
[Required(ErrorMessage = "核心网配置路径不能为空")]
- [RegularExpression(@"^Config/CoreNetwork/.*\.cfg$", ErrorMessage = "核心网配置路径格式不正确")]
+ //[RegularExpression(@"^Config/CoreNetwork/.*\.cfg$", ErrorMessage = "核心网配置路径格式不正确")]
[JsonPropertyName("coreNetworkConfig")]
public string CoreNetworkConfig { get; set; }
@@ -189,7 +189,7 @@ namespace CoreAgent.Domain.Entities
/// IMS配置文件路径
///
[Required(ErrorMessage = "IMS配置路径不能为空")]
- [RegularExpression(@"^Config/Ims/.*\.cfg$", ErrorMessage = "IMS配置路径格式不正确")]
+ //[RegularExpression(@"^Config/Ims/.*\.cfg$", ErrorMessage = "IMS配置路径格式不正确")]
[JsonPropertyName("imsConfig")]
public string ImsConfig { get; set; }
}