Exemple #1
0
        /// <summary>
        /// 获取字典数据
        /// </summary>
        /// <returns></returns>
        public async Task <Paged <DictItemOutput> > GetDictItemPaged(DictQueryInput queryInput)
        {
            var query = queryInput.Adapt <DictQuery>();

            query.OrderBy(a => a.Sort).OrderBy(a => a.CreateTime);

            var dicts = await _dictRep.GetPagedAsync(query);

            return(dicts.Adapt <Paged <DictItemOutput> >());
        }