Exemplo n.º 1
0
        /// <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 depts = await _deptService.FindDeptAllByPage(pageIndex, pageSize);

            return(depts.Adapt <PagedList <DeptOutput> >());
        }