|
@@ -54,8 +54,26 @@ namespace TEAMModelOS.Controllers
|
|
|
_serviceBus = serviceBus;
|
|
|
_snowflakeId = snowflakeId;
|
|
|
}
|
|
|
-
|
|
|
+ //shasdu
|
|
|
#region 杉达公司
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 开课或者上传课例信息 是因支持VR/AR的公司(杉达)
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="jsonElement"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
+ [ProducesResponseType(StatusCodes.Status400BadRequest)]
|
|
|
+ [ProducesDefaultResponseType]
|
|
|
+ [HttpPost("create-vrar-lesson-shanda-v2")]
|
|
|
+ [ApiToken(Auth = "2003", Name = "VR·AR开课/上传课例信息", TName = "VR·AR開課/上傳課例信息", EName = "Start VR·AR lesson/upload VR·AR lesson ", RWN = "W", Limit = false)]
|
|
|
+ public async Task<IActionResult> CreateVRARLessonShanDaV2(JsonElement jsonElement) {
|
|
|
+ var (id, school) = HttpContext.GetApiTokenInfo();
|
|
|
+ VRARLessonRecord lessonRecord= jsonElement.ToObject<VRARLessonRecord>();
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 开课或者上传课例信息 是因支持VR/AR的公司(杉达)
|
|
|
/// </summary>
|
|
@@ -66,10 +84,10 @@ namespace TEAMModelOS.Controllers
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("create-vrar-lesson-shanda")]
|
|
|
[ApiToken(Auth = "2003", Name = "VR·AR开课/上传课例信息", TName = "VR·AR開課/上傳課例信息", EName = "Start VR·AR lesson/upload VR·AR lesson ", RWN = "W", Limit = false)]
|
|
|
- public async Task<IActionResult> UpdateLesson(JsonElement jsonElement)
|
|
|
+ public async Task<IActionResult> CreateVRARLessonShanDa(JsonElement jsonElement)
|
|
|
{
|
|
|
var (id, school) = HttpContext.GetApiTokenInfo();
|
|
|
-
|
|
|
+
|
|
|
try
|
|
|
{
|
|
|
jsonElement.TryGetProperty("baseJson", out JsonElement baseJson); //课例基础文件信息json
|