using Entities.DTO;
using TechHelper.Services;

namespace TechHelper.Services.Beta
{
    public interface IExamQuestionService : IBaseService<ExamQuestionDto, Guid>
    {
        /// <summary>
        /// 包含改题目需要的知识点,得分情况分布,错误学生列表
        /// </summary>
        /// <param name="ExamQuestioId"></param>
        /// <returns></returns>
        Task<ApiResponse> GetQuestionDependy(QuesitionDenpendceyRequst request);

        public record QuesitionDenpendceyRequst(Guid ExamQuestioId, Guid ClassId);

        public record QuestionDependecyDto (LessonDto? Lesson, IEnumerable<float?> ScoreDistribution, IEnumerable<UserListDto> ErrorStudents);
    }
}
