Beispiel #1
0
        /// <summary>
        /// 选择题列表
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public async Task <PagedList <SelectCourseChapterOutput> > GetSelectList(
            [FromQuery] int pageIndex = 1,
            [FromQuery] int pageSize  = 10)
        {
            var teacher = await GetTeacher();

            var teacherId  = teacher.Id;
            var selectList = await _selectService
                             .FindSelectAllByTeacherAndPage(teacherId, pageIndex, pageSize);

            return(selectList.Adapt <PagedList <SelectCourseChapterOutput> >());
        }