|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Threading.Tasks;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
+using TEAMModelOS.Models;
|
|
|
using TEAMModelOS.SDK.Extension.DataResult.JsonRpcRequest;
|
|
|
using TEAMModelOS.SDK.Extension.DataResult.JsonRpcResponse;
|
|
|
using TEAMModelOS.SDK.Helper.Common.CollectionHelper;
|
|
@@ -43,7 +44,18 @@ namespace TEAMModelOS.Controllers.Exam
|
|
|
}
|
|
|
return builder.Data(request.@params).build();
|
|
|
}
|
|
|
-
|
|
|
+ /// <summary>
|
|
|
+ /// 删除
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost("DeleteExamInfo")]
|
|
|
+ public async Task<BaseJosnRPCResponse> DeleteExamInfo(JosnRPCRequest<IdPk> request)
|
|
|
+ {
|
|
|
+ JsonRPCResponseBuilder builder = JsonRPCResponseBuilder.custom();
|
|
|
+ ExamInfo items = await cosmosDBV3Repository.DeleteAsync<ExamInfo>(request.@params.id, request.@params.pk);
|
|
|
+ return builder.Data(items).build();
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 查询考试信息
|
|
|
/// </summary>
|
|
@@ -55,7 +67,18 @@ namespace TEAMModelOS.Controllers.Exam
|
|
|
JsonRPCResponseBuilder builder = JsonRPCResponseBuilder.custom();
|
|
|
return builder.Data( await cosmosDBV3Repository.FindByDict<ExamInfo>(request.@params)).build();
|
|
|
}
|
|
|
-
|
|
|
+ /// <summary>
|
|
|
+ /// 删除
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost("DeleteExamPaper")]
|
|
|
+ public async Task<BaseJosnRPCResponse> DeleteExamPaper(JosnRPCRequest<IdPk> request)
|
|
|
+ {
|
|
|
+ JsonRPCResponseBuilder builder = JsonRPCResponseBuilder.custom();
|
|
|
+ ExamPaper items = await cosmosDBV3Repository.DeleteAsync<ExamPaper>(request.@params.id, request.@params.pk);
|
|
|
+ return builder.Data(items).build();
|
|
|
+ }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 查询试卷
|