Esempio n. 1
0
        /// <summary>
        /// 获取用户数据权限(门店)
        /// </summary>
        /// <param name="dataLimitShop"></param>
        /// <returns></returns>
        private async Task <ResponseBase> GetUserDataLimitShop(string dataLimitShop)
        {
            var shops = await _shopBll.GetShopByIds(dataLimitShop);

            var shopViews = shops.Select(p => new DataLimitShopView()
            {
                Id   = p.ShopId,
                Name = p.ShopName
            }).ToList();

            return(ResponseBase.Success(new UserDataLimitView((int)DataLimitTypeEnum.Shop, await GetAreaView(), shopViews)));
        }