diff --git a/LTEMvcApp/Models/NetworkConfig.cs b/LTEMvcApp/Models/NetworkConfig.cs index 8dd48f5..f047082 100644 --- a/LTEMvcApp/Models/NetworkConfig.cs +++ b/LTEMvcApp/Models/NetworkConfig.cs @@ -1,3 +1,6 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + namespace LTEMvcApp.Models { /// @@ -5,10 +8,19 @@ namespace LTEMvcApp.Models /// public class NetworkConfigResponse { + [JsonPropertyName("data")] public List Data { get; set; } = new(); + + [JsonPropertyName("isSuccess")] public bool IsSuccess { get; set; } + + [JsonPropertyName("message")] public string Message { get; set; } = string.Empty; + + [JsonPropertyName("errorCode")] public string ErrorCode { get; set; } = string.Empty; + + [JsonPropertyName("statusCode")] public int StatusCode { get; set; } } @@ -20,31 +32,37 @@ namespace LTEMvcApp.Models /// /// 配置键 /// + [JsonPropertyName("configKey")] public string ConfigKey { get; set; } = string.Empty; /// /// RAN配置路径 /// + [JsonPropertyName("ragConfig")] public string RagConfig { get; set; } = string.Empty; /// /// 核心或IMS配置 /// - public List CoreOrImsConfigs { get; set; } = new(); + [JsonPropertyName("coreOrImsConfigs")] + public List CoreOrImsConfigs { get; set; } = new(); /// /// APN /// + [JsonPropertyName("apn")] public string Apn { get; set; } = string.Empty; /// /// 频段列表 /// + [JsonPropertyName("band")] public List Band { get; set; } = new(); /// /// 注释 /// + [JsonPropertyName("comment")] public string Comment { get; set; } = string.Empty; } } \ No newline at end of file