|
@@ -81,6 +81,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
/// </summary>
|
|
|
/// <param name="request"></param>
|
|
|
/// <returns></returns>
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("update-lesson-record")]
|
|
|
public async Task<IActionResult> UpdateLessonRecord(JsonElement request)
|
|
@@ -151,7 +152,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
/// </summary>
|
|
|
/// <param name="request"></param>
|
|
|
/// <returns></returns>
|
|
|
- //[Authorize(Roles = "HiTeach")]
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("create-lesson")]
|
|
|
public async Task<IActionResult> CreateLesson(CreateLessondRequest request)
|
|
@@ -286,6 +287,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
/// </summary>
|
|
|
/// <param name="request"></param>
|
|
|
/// <returns></returns>
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("create-lesson-record")]
|
|
|
public async Task<IActionResult> CreateLessonRecord(JsonElement request)
|
|
@@ -380,6 +382,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("get-teacher-info")]
|
|
|
public async Task<IActionResult> GetTeacherInfo()
|
|
@@ -624,6 +627,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("get-school-info")]
|
|
|
public async Task<IActionResult> GetSchoolInfo(JsonElement request)
|
|
@@ -938,6 +942,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
}
|
|
|
|
|
|
//取得試卷
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("get-paper")]
|
|
|
public async Task<IActionResult> GetPaperList(JsonElement request)
|
|
@@ -1070,6 +1075,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
}
|
|
|
|
|
|
//取得試題
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("get-item")]
|
|
|
public async Task<IActionResult> GetItemList(JsonElement request)
|
|
@@ -1214,6 +1220,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
}
|
|
|
|
|
|
//取得知識點
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("get-knowledge")]
|
|
|
public async Task<IActionResult> GetKnowledgePointList(JsonElement request)
|
|
@@ -1238,6 +1245,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
}
|
|
|
|
|
|
//取得課綱
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("get-syllabus")]
|
|
|
public async Task<IActionResult> GetSyllabusList(JsonElement request)
|
|
@@ -1445,6 +1453,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
}
|
|
|
|
|
|
//取得某班級的學生成員
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("get-students-list")]
|
|
|
public async Task<IActionResult> GetStudentsList(JsonElement request)
|
|
@@ -1486,6 +1495,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
/// </summary>
|
|
|
/// <param name="request"></param>
|
|
|
/// <returns></returns>
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("start-lesson")]
|
|
|
public async Task<IActionResult> StartLesson(JsonElement request)
|
|
@@ -1510,6 +1520,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
//上傳評測結果
|
|
|
//錯誤代碼:error = 1001 message = "Paper blob copy failure."
|
|
|
// error = 1002 message = "Student answers blob upload failure."
|
|
|
+ [Authorize(Roles = "HiTeach")]
|
|
|
[ProducesDefaultResponseType]
|
|
|
[HttpPost("upd-exam-result")]
|
|
|
public async Task<IActionResult> UploadExamResult(JsonElement request)
|