namespace HStation.Application { /// /// AssetsSprinklerSeries /// [Route("Assets/Sprinkler/Series/Std")] [ApiDescriptionSettings("Assets", Name = "喷头系列(Std)", Order = 19900)] public class AssetsSprinklerSeries_StdController : IDynamicApiController { /// /// 获取所有 /// [Route("GetAll@V1.0")] [HttpGet] public List GetAll() { var keyContent = $"Assets_Sprinkler_Series_Std_GetAll"; var cacheKey = MemoryCacheKeyHelper.GetKey(MemoryCacheKey.WebApiLevel, MemoryCacheKey.Module, keyContent); var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => { var allList = new HStation.Service.AssetsSprinklerSeries().GetAll(); HStation.Service.AssetsSprinklerSeries.PublishCache(cacheKey); var vmList = allList?.Select(x => new AssetsSprinklerSeriesStdDto(x)).ToList(); return vmList; }, Yw.Service.ConfigHelper.CacheLevel3); return vm_list; } } }