From 4601f0bc120c2ecf7762349270b625121ce16bca Mon Sep 17 00:00:00 2001 From: hyh Date: Wed, 11 Jun 2025 18:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Configurations/NetworkConfig.json | 26 +++++++++++++++++++ .../StartCellularNetworkCommand.cs | 2 +- .../Models/Network/CellularNetworkConfig.cs | 10 +++---- 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 CoreAgent.API/Configurations/NetworkConfig.json diff --git a/CoreAgent.API/Configurations/NetworkConfig.json b/CoreAgent.API/Configurations/NetworkConfig.json new file mode 100644 index 0000000..599b9d1 --- /dev/null +++ b/CoreAgent.API/Configurations/NetworkConfig.json @@ -0,0 +1,26 @@ +{ + "configKey": "Default", + "ragConfig": "Config/Ran/default.cfg", + "coreOrImsConfigs": [ + { + "index": 1, + "plmn": "46000", + "coreNetworkConfig": "Config/CoreNetwork/plmn_46000.cfg", + "imsConfig": "Config/Ims/plmn_46000.cfg" + }, + { + "index": 2, + "plmn": "46001", + "coreNetworkConfig": "Config/CoreNetwork/plmn_46001.cfg", + "imsConfig": "Config/Ims/plmn_46001.cfg" + } + ], + "apn": "Internet", + "band": [ + "B1", + "B3", + "B5", + "B8" + ], + "comment": "默认网络配置" +} \ No newline at end of file diff --git a/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs b/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs index 6aea228..dd73727 100644 --- a/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs +++ b/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs @@ -11,7 +11,7 @@ public class StartCellularNetworkCommand : IRequest /// /// 网络接口名称 /// - public string InterfaceName { get; set; } + public string Key { get; set; } /// /// 网络配置 diff --git a/CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs b/CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs index 0bce1de..c8f14ce 100644 --- a/CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs +++ b/CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs @@ -11,12 +11,10 @@ public class CellularNetworkConfig public string Apn { get; set; } /// - /// 用户名 + /// 频段 /// - public string Username { get; set; } + public string[] Band { get; set; } - /// - /// 密码 - /// - public string Password { get; set; } + + public string Plmn { get; set; } } \ No newline at end of file