namespace HStation.Application { /// /// AssetsExchangerFactor /// [Route("Assets/Exchanger/Factor/Std")] [ApiDescriptionSettings("Assets", Name = "换热器系数(Std)", Order = 17900)] public class AssetsExchangerFactor_StdController : IDynamicApiController { /// /// 获取所有 /// [Route("GetAll@V1.0")] [HttpGet] public List GetAll() { var keyContent = $"Assets_Exchanger_Factor_Std_GetAll"; var cacheKey = MemoryCacheKeyHelper.GetKey(MemoryCacheKey.WebApiLevel, MemoryCacheKey.Module, keyContent); var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => { var allList = new HStation.Service.AssetsExchangerFactor().GetAll(); HStation.Service.AssetsExchangerFactor.PublishCache(cacheKey); var vmList = allList?.Select(x => new AssetsExchangerFactorStdDto(x)).ToList(); return vmList; }, Yw.Service.ConfigHelper.CacheLevel3); return vm_list; } } }