Esempio n. 1
0
        //[Authorize]
        public APIResult GetPagedList([FromBody] GetPagedListRequestModel args)
        {
            CheckShopActor(args.ShopId, ShopActorType.超级管理员);
            var orderContext = new OrderContext(args.OrderType, _mapper);
            var list         = orderContext.ExecuteGetPagedList(args, db);


            return(Success(new
            {
                PageIndex = list.PageIndex,
                PageSize = list.PageSize,
                TotalCount = list.TotalItemCount,
                Items = list.ToList()
            }));
        }