Browse Source

TEAMModelId添加JsonProperty

CrazyIter 5 years ago
parent
commit
0812395d12
1 changed files with 2 additions and 0 deletions
  1. 2 0
      TEAMModelOS.Service/Models/Syllabus/Volume.cs

+ 2 - 0
TEAMModelOS.Service/Models/Syllabus/Volume.cs

@@ -4,6 +4,7 @@ using System.Text;
 using TEAMModelOS.SDK.Context.Attributes.Azure;
 using System.Text.Json.Serialization;
 using System.ComponentModel.DataAnnotations;
+using Newtonsoft.Json;
 
 namespace TEAMModelOS.Service.Models.Syllabus
 {
@@ -33,6 +34,7 @@ namespace TEAMModelOS.Service.Models.Syllabus
         public string volumeName { get; set; }
         public string volumeCode { get; set; }
         [JsonPropertyName("TEAMModelId")]
+        [JsonProperty("TEAMModelId")]
         public string TEAMModelId { get; set; }
         public string[] editors { get; set; }
     }