|
@@ -1282,6 +1282,15 @@ namespace TEAMModelOS.Controllers
|
|
|
List<string> infos = await FixDataService.FixExamPublish(client, data);
|
|
|
return Ok(new { infos });
|
|
|
}
|
|
|
+ [ProducesDefaultResponseType]
|
|
|
+ //[AuthToken(Roles = "teacher")]
|
|
|
+ [HttpPost("fix-exam-class-result")]
|
|
|
+ public async Task<IActionResult> FixExamClassResult(JsonElement data)
|
|
|
+ {
|
|
|
+ var client = _azureCosmos.GetCosmosClient();
|
|
|
+ List<string> infos = await FixDataService.FixExamClassResult(client, data, _dingDing, _coreAPIHttpService, _option);
|
|
|
+ return Ok(new { infos });
|
|
|
+ }
|
|
|
|
|
|
/// <summary>
|
|
|
/// add admin
|