/// <summary> /// 系别列表 /// </summary> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <returns></returns> public async Task <PagedList <DeptOutput> > GetDeptList( [FromQuery] int pageIndex = 1, [FromQuery] int pageSize = 10) { var teacher = await GetTeacher(); var depts = await _deptService.FindDeptByTeacherAndPage(teacher.Id, pageIndex, pageSize); return(depts.Adapt <PagedList <DeptOutput> >()); }