CrazyIter_Bin 2 年之前
父節點
當前提交
7e0da39b81

+ 7 - 3
TEAMModelOS.SDK/Models/Cosmos/Student/OverallEducation.cs

@@ -88,9 +88,9 @@ namespace TEAMModelOS.SDK.Models.Cosmos.Student
         /// </summary>
         public string examType { get; set; }
         /// <summary>
-        /// 满分
+        ///配分满分
         /// </summary>
-        public double full { get; set; } = 100;
+        public double totalScore { get; set; } = 100;
         /// <summary>
         /// 总分得分率
         /// </summary>
@@ -151,7 +151,7 @@ namespace TEAMModelOS.SDK.Models.Cosmos.Student
         public string name { get; set; }//学生姓名
         public string classId { get; set; }//行政班id
         public string periodId { get; set; }//学段id
-        public string subjectId { get; set; }//体育科目id
+        public string subjectId { get; set; }//科目id
         public List<SemesterData> semesterData { get; set; }//学期数据
     }
 
@@ -189,6 +189,10 @@ namespace TEAMModelOS.SDK.Models.Cosmos.Student
         /// </summary>
         public string semesterId { get; set; }
         /// <summary>
+        ///配分满分
+        /// </summary>
+        public double totalScore { get; set; } = 100;
+        /// <summary>
         /// //总成绩
         /// </summary>
         public double sumScore { get; set; }

+ 12 - 10
TEAMModelOS/Controllers/OpenApi/Customize/PortraitController.cs

@@ -14,11 +14,14 @@ using TEAMModelOS.SDK.Extension;
 using Top.Api;
 using TEAMModelOS.SDK.Models.Cosmos.Student;
 
-namespace TEAMModelOS.Controllers
+namespace TEAMModelOS.Controllers.OpenApi.Business
 {
-    [Route("portrait")]
+    /// <summary>
+    /// 企业定制接口
+    /// </summary>
+    [Route("business")]
     [ApiController]
-    public class PortraitController : ControllerBase
+    public class BizCustomizeController : ControllerBase
     {
         public AzureCosmosFactory _azureCosmos;
         private readonly AzureStorageFactory _azureStorage;
@@ -28,7 +31,7 @@ namespace TEAMModelOS.Controllers
         private readonly IConfiguration _configuration;
         private readonly CoreAPIHttpService _coreAPIHttpService;
         private readonly AzureServiceBusFactory _serviceBus;
-        public PortraitController(AzureCosmosFactory azureCosmos, AzureStorageFactory azureStorage, AzureRedisFactory azureRedis, AzureServiceBusFactory serviceBus, DingDing dingDing, CoreAPIHttpService coreAPIHttpService, IOptionsSnapshot<Option> option, IConfiguration configuration)
+        public BizCustomizeController(AzureCosmosFactory azureCosmos, AzureStorageFactory azureStorage, AzureRedisFactory azureRedis, AzureServiceBusFactory serviceBus, DingDing dingDing, CoreAPIHttpService coreAPIHttpService, IOptionsSnapshot<Option> option, IConfiguration configuration)
         {
             _azureCosmos = azureCosmos;
             _azureStorage = azureStorage;
@@ -47,13 +50,12 @@ namespace TEAMModelOS.Controllers
         /// <param name="portrait"></param>
         /// <returns></returns>
         [ProducesDefaultResponseType]
-        [HttpPost("set-info")]
-        public async Task<IActionResult> SetInfo(JsonElement jsonElement)
+        [HttpPost("upsert-student-portrait")]
+        public async Task<IActionResult> UpsertStudentPortrait(JsonElement jsonElement)
         {
             ResponseData<dynamic> responseData = null;
-
-            if (!jsonElement.TryGetProperty("schoolCode", out JsonElement schoolCode)) return Ok(responseData = new() { code = RespondCode.ParamsError,msg = "schoolCode为空!" });
-            if (!jsonElement.TryGetProperty("studentId", out JsonElement studentId)) return Ok(responseData = new() { code = RespondCode.ParamsError, msg = "studentId为空!" }); 
+            if (!jsonElement.TryGetProperty("schoolCode", out JsonElement schoolCode)) return Ok(responseData = new() { code = RespondCode.ParamsError, msg = "schoolCode为空!" });
+            if (!jsonElement.TryGetProperty("studentId", out JsonElement studentId)) return Ok(responseData = new() { code = RespondCode.ParamsError, msg = "studentId为空!" });
             if (!jsonElement.TryGetProperty("name", out JsonElement name)) return Ok(responseData = new() { code = RespondCode.ParamsError, msg = "name为空!" });
             if (!jsonElement.TryGetProperty("classId", out JsonElement classId)) return Ok(responseData = new() { code = RespondCode.ParamsError, msg = "classId为空!" });
             if (!jsonElement.TryGetProperty("periodId", out JsonElement periodId)) return Ok(responseData = new() { code = RespondCode.ParamsError, msg = "periodId为空!" });
@@ -64,7 +66,7 @@ namespace TEAMModelOS.Controllers
 
 
 
-            return Ok(responseData =new() { code = RespondCode.Ok, msg = "成功" });
+            return Ok(responseData = new() { code = RespondCode.Ok, msg = "成功" });
         }