using System.Collections.Generic; using System.Threading.Tasks; using GxPress.Common.Page; using GxPress.Request.Media; using GxPress.Result.Media; namespace GxPress.Service.Implement.Media { /// /// 明栏 /// public partial class MediaService { /// /// 明栏 /// /// public async Task> GetMediaStarLableResultAysnc() { var result = new List(); //获取明栏 var starLable = await attachRepository.GetStarLablesAsync(); foreach (var item in starLable) { var request = new MediaStarLableRequest() { AttachId = item.Item1 }; var mediaStarLableResult = new MediaStarLableResult() { Id = item.Item1, Name = item.Item2, Item = await mediaRepository.GetStarLablesAsync(request) }; result.Add(mediaStarLableResult); } return result; } /// /// 明栏分页 /// /// public async Task> GetStarLablePageAsync(MediaStarLableRequest request) { return await mediaRepository.GetStarLablePageAsync(request); } } }