namespace Yw.Application { /// /// BimfaceFileRelationLabel /// [Route("Bimface/File/Relation/Label/Std")] [ApiDescriptionSettings("Bimface", Name = "Bimface文件关联标签(Std)", Order = 69000)] public class BimfaceFileRelationLabel_StdController : IDynamicApiController { /// ///通过 RelationID 获取 /// [Route("GetByRelationID@V1.0")] [HttpGet] public List GetByRelationID([FromQuery][Required] RelationIDInput input) { var keyContent = $"Bimface_File_Relation_Label_Std_GetByRelationID_{input.RelationID}"; var cacheKey = MemoryCacheKeyHelper.GetKey(MemoryCacheKey.WebApiLevel, MemoryCacheKey.Module, keyContent); var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => { var all = new Service.BimfaceFileRelationLabel().GetAll(); Service.BimfaceFileRelationLabel.PublishCache(cacheKey); var vmList = all?.Select(x => new BimfaceFileRelationLabelStdDto(x)).ToList(); return vmList; }, Yw.Service.ConfigHelper.CacheLevel5); return vm_list; } } }