namespace Tiobon.Core.Api.Controllers; /// /// 考试记录(Controller) /// [Route("api/[controller]")] [ApiController, GlobalActionFilter] [Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)] public class Ghre_ExamRecordController : BaseController { public Ghre_ExamRecordController(IGhre_ExamRecordServices service) : base(service) { } #region 根据条件查询数据 /// /// 根据条件查询数据 /// /// examId /// 条件 /// [HttpPost, Route("QueryList/{examId}")] public async Task> Query(string examId, [FromBody] QueryBody body) { return await _service.Query(examId, body); } #endregion [HttpPost("ModifyAdjustScore/{examRecordId}")] public async Task ModifyAdjustScore(string examRecordId, [FromBody] EditGhre_ExamRecordInput edit) { return await _service.ModifyAdjustScore(examRecordId, edit); } /// /// 获取考试记录明细扩展接口 /// /// /// [HttpPost("QueryExtend/{examRecordId}")] public async Task> ExtendAsync(long examRecordId) { return await _service.ExtendAsync(examRecordId); } /// /// 提交评语接口 /// /// /// /// [HttpPost("Comment/{examRecordId}")] public async Task CommentAsync([FromBody] Ghre_ExamRecordExtend extend, long examRecordId) { return await _service.CommentAsync(extend, examRecordId); } /// /// 获取考试信息 /// /// 学习记录ID/考试记录ID /// [HttpPost("QueryExam/{id}")] public async Task> QueryExamAsync( long id) { return await _service.QueryExamAsync(id); } }