123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- using System.Linq;
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using AutoMapper;
- using Datory;
- using GxPress.Common.AppOptions;
- using GxPress.Common.Tools;
- using GxPress.Repository.Interface.Media;
- using GxPress.Result.Media;
- using Microsoft.Extensions.Options;
- using System.Transactions;
- using GxPress.Common.Exceptions;
- using GxPress.Common.Page;
- using GxPress.Request.Media;
- using System;
- using GxPress.EnumConst;
- namespace GxPress.Repository.Implement.Media
- {
- public class MediaRepository : IMediaRepository
- {
- private readonly Repository<Entity.tede2.Media.Media> _repository;
- private readonly Repository<Entity.tede2.Media.MediaLibrary> mediaLibraryRepository;
- private readonly Repository<Entity.tede2.Media.MediaLable> mediaLableRepository;
- private readonly IMapper _mapper;
- private readonly string _connectionString;
- private readonly string _databaseTypestr;
- public MediaRepository(IOptionsMonitor<DatabaseOptions> dbOptionsAccessor, IMapper mapper)
- {
- _databaseTypestr = dbOptionsAccessor.CurrentValue.DatabaseType;
- _connectionString = dbOptionsAccessor.CurrentValue.ConnectionString;
- var databaseType =
- StringUtils.ToEnum<DatabaseType>(dbOptionsAccessor.CurrentValue.DatabaseType, DatabaseType.MySql);
- var database = new Database(databaseType, dbOptionsAccessor.CurrentValue.ConnectionString);
- _repository = new Repository<Entity.tede2.Media.Media>(database);
- mediaLibraryRepository = new Repository<Entity.tede2.Media.MediaLibrary>(database);
- mediaLableRepository = new Repository<Entity.tede2.Media.MediaLable>(database);
- _mapper = mapper;
- }
- public IDatabase Database => _repository.Database;
- public string TableName => _repository.TableName;
- public List<TableColumn> TableColumns => _repository.TableColumns;
- public async Task<MediaResult> GetAsync(int id)
- {
- var result = new MediaResult();
- //获取媒体
- var media = await _repository.GetAsync(id);
- result = _mapper.Map<MediaResult>(media);
- result.ImageUrls = StringUtils.AddDomain(result.ImageUrls);
- result.CategoryId = StringUtils.StringCollectionToStringList(media.CategoryId).ToList();
- result.CategoryName = StringUtils.StringCollectionToStringList(media.CategoryName).ToList();
- result.FullCategoryId = StringUtils.StringCollectionToStringList(media.FullCategoryId).ToList();
- //获取媒体库资源
- var mediaLibrarys = await mediaLibraryRepository.GetAllAsync(Q.Where(nameof(Entity.tede2.Media.MediaLibrary.MediaId), id));
- result.MediaLibraryResults = mediaLibrarys.ToList().Select(n => _mapper.Map<MediaLibraryResult>(n)).ToList();
- foreach (var item in result.MediaLibraryResults)
- {
- item.FileUrl = StringUtils.AddDomain(item.FileUrl);
- }
- //获取媒体标签
- var mediaLables = await mediaLableRepository.GetAllAsync(Q.Where(nameof(Entity.tede2.Media.MediaLable.MediaId), id));
- result.MediaLableResults = mediaLables.Select(n => _mapper.Map<MediaLableResult>(n)).ToList();
- return result;
- }
- /// <summary>
- /// 删除媒体
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public async Task<bool> DeleteAsync(int id)
- {
- try
- {
- using (var transactionScope = new TransactionScope())
- {
- // //删除媒体库
- // await mediaLibraryRepository.DeleteAsync(Q.Where(nameof(Entity.tede2.Media.MediaLibrary.MediaId), id));
- // //删除媒体标签
- // await mediaLableRepository.DeleteAsync(Q.Where(nameof(Entity.tede2.Media.MediaLable.MediaId), id));
- await _repository.UpdateAsync(Q.Where(nameof(Entity.tede2.Media.Media.Id), id).Set(nameof(Entity.tede2.Media.Media.IsDelete), true));
- transactionScope.Complete();
- }
- }
- catch (System.Exception ex)
- {
- throw new BusinessException(ex.Message);
- }
- return true;
- }
- /// <summary>
- /// 添加媒体
- /// </summary>
- /// <param name="result"></param>
- /// <returns></returns>
- public async Task<bool> InsertAsync(MediaResult result)
- {
- var model = _mapper.Map<Entity.tede2.Media.Media>(result);
- model.ImageUrls = StringUtils.RemoveDomain(result.ImageUrls);
- try
- {
- using (var transactionScope = new TransactionScope())
- {
- model.AutoNumber = SnowflakeHelper.MakeSnowflake();
- var categoryId = "";
- foreach (var item in result.CategoryId)
- {
- categoryId += item.Split(",")[item.Split(",").Length - 1] + ",";
- }
- categoryId = categoryId.Remove(categoryId.Length - 1, 1);
- model.CategoryId = categoryId;
- model.FullCategoryId = StringUtils.ObjectCollectionToString(result.CategoryId);
- var categoryName = "";
- foreach (var item in result.CategoryName)
- {
- categoryName += item.Split(",")[item.Split(",").Length - 1] + ",";
- }
- categoryName = categoryName.Remove(categoryName.Length - 1, 1);
- model.CategoryName = categoryName;
- model.IsLibrary = result.MediaLibraryResults.Count > 0;
- var id = await _repository.InsertAsync(model);
- if (id > 0)
- {
- foreach (var item in result.MediaLibraryResults)
- {
- var mediaLibrary = _mapper.Map<Entity.tede2.Media.MediaLibrary>(item);
- mediaLibrary.MediaId = id;
- mediaLibrary.FileUrl = StringUtils.RemoveDomain(item.FileUrl);
- await mediaLibraryRepository.InsertAsync(mediaLibrary);
- }
- }
- //添加标签
- foreach (var item in result.MediaLableResults)
- {
- var mediaLable = _mapper.Map<Entity.tede2.Media.MediaLable>(item);
- mediaLable.MediaId = id;
- await mediaLableRepository.InsertAsync(mediaLable);
- }
- if (result.Id == 0 && result.TeacherId == 0 && !string.IsNullOrEmpty(result.Author))
- {
- //新增名师
- }
- //提交事务
- transactionScope.Complete();
- }
- }
- catch (System.Exception ex)
- {
- throw new Common.Exceptions.BusinessException(ex.Message);
- }
- return true;
- }
- public async Task<bool> UpdateAsync(Entity.tede2.Media.Media note)
- {
- return await _repository.UpdateAsync(note);
- }
- public async Task<bool> UpdateAsync(SqlKata.Query query)
- {
- return await _repository.UpdateAsync(query) > 0;
- }
- /// <summary>
- /// 查询
- /// </summary>
- /// <param name="request"></param>
- /// <returns></returns>
- public async Task<PagedList<Entity.tede2.Media.Media>> GetAllAsync(MediaSearchRequest request)
- {
- var result = new PagedList<Entity.tede2.Media.Media>();
- var query = Q.NewQuery();
- if (!string.IsNullOrEmpty(request.KeyWord))
- {
- query.OrWhereLike(nameof(Entity.tede2.Media.Media.Title), $"%{request.KeyWord}%");
- query.OrWhereLike(nameof(Entity.tede2.Media.Media.Creator), $"%{request.KeyWord}%");
- }
- if (request.IsDelete > 0)
- query.Where(nameof(Entity.tede2.Media.Media.IsDelete), request.IsDelete == 1);
- if (request.MediaType > 0)
- query.Where(nameof(Entity.tede2.Media.Media.MediaType), request.MediaType);
- if (request.LibraryType > 0)
- query.Where(nameof(Entity.tede2.Media.Media.IsLibrary), request.LibraryType == 1);
- if (!string.IsNullOrEmpty(request.BeginTime) && !string.IsNullOrEmpty(request.EndTime))
- {
- if (DateTime.TryParse(request.BeginTime, out var beginTime) && DateTime.TryParse(request.EndTime, out var endTime))
- {
- query.WhereDate(nameof(Entity.tede2.Media.Media.CreatedDate), ">=", beginTime);
- query.WhereDate(nameof(Entity.tede2.Media.Media.CreatedDate), "<=", endTime);
- }
- }
- if (request.IsChecked > 0)
- query.Where(nameof(Entity.tede2.Media.Media.IsChecked), request.IsChecked == 1);
- result.Total = await _repository.CountAsync(query);
- //排序
- if (string.IsNullOrEmpty(request.Sort))
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.CreatedDate));
- else if (request.Sort.Equals("SellAmount"))
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.SellAmount));
- else if (request.Sort.Equals("ReadCount"))
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.ReadCount));
- var item = await _repository.GetAllAsync(query.ForPage(request.Page, request.PerPage));
- result.Items = item;
- return result;
- }
- public async Task<bool> UpdateAsync(MediaResult result)
- {
- //var model = _mapper.Map<Entity.tede2.Media.Media>(result);
- try
- {
- using (var transactionScope = new TransactionScope())
- {
- var model = await _repository.GetAsync(result.Id);
- if (result.CategoryId != null && result.CategoryId.Count > 0)
- {
- var categoryId = "";
- foreach (var item in result.CategoryId)
- categoryId += item.Split(",")[item.Split(",").Length - 1] + ",";
- categoryId = categoryId.Remove(categoryId.Length - 1, 1);
- model.CategoryId = categoryId;
- model.FullCategoryId = StringUtils.ObjectCollectionToString(result.CategoryId);
- }
- if (result.CategoryName != null && result.CategoryName.Count > 0)
- {
- var categoryName = "";
- foreach (var item in result.CategoryName)
- categoryName += item.Split(",")[item.Split(",").Length - 1] + ",";
- categoryName = categoryName.Remove(categoryName.Length - 1, 1);
- model.CategoryName = categoryName;
- }
- if (result.AdminId > 0)
- model.AdminId = result.AdminId;
- if (!string.IsNullOrEmpty(result.Creator))
- model.Creator = result.Creator;
- if (result.MediaType > 0)
- model.MediaType = result.MediaType;
- if (!string.IsNullOrEmpty(result.Title))
- model.Title = result.Title;
- if (!string.IsNullOrEmpty(result.ImageUrls))
- model.ImageUrls = result.ImageUrls;
- if (!string.IsNullOrEmpty(result.Summary))
- model.Summary = result.Summary;
- if (!string.IsNullOrEmpty(result.Author))
- model.Author = result.Author;
- if (result.TeacherId > 0)
- model.TeacherId = result.TeacherId;
- if (!string.IsNullOrEmpty(result.Source))
- model.Source = result.Source;
- if (!string.IsNullOrEmpty(result.Blocks))
- model.Blocks = result.Blocks;
- if (result.IsChecked > 0)
- model.IsChecked = result.IsChecked == 1;
- if (!string.IsNullOrEmpty(result.AddDate))
- model.AddDate = Convert.ToDateTime(result.AddDate);
- if (model.Sort > 0)
- model.Sort = result.Sort;
- if (model.ReadCount > 0)
- model.ReadCount = result.ReadCount;
- if (result.IsTop > 0)
- model.IsTop = result.IsTop == 1;
- if (result.LableId > 0)
- model.LableId = result.LableId;
- if (result.IsRecommend > 0)
- model.IsRecommend = result.IsRecommend == 1;
- if (!string.IsNullOrEmpty(result.Press))
- model.Press = result.Press;
- if (!string.IsNullOrEmpty(result.PublishTime))
- model.PublishTime = result.PublishTime;
- if (result.IosDiscountPrice > 0)
- model.IosDiscountPrice = result.IosDiscountPrice;
- if (result.IosPrice > 0)
- model.IosPrice = result.IosPrice;
- if (result.OtherDiscountPrice > 0)
- model.OtherDiscountPrice = result.OtherDiscountPrice;
- if (result.OtherPrice > 0)
- model.OtherPrice = result.OtherPrice;
- if (result.FreeProportion > 0)
- model.FreeProportion = result.FreeProportion;
- if (result.AttachType > 0)
- model.AttachType = result.AttachType;
- if (result.AttachId > 0)
- model.AttachId = result.AttachId;
- if (result.MediaId > 0)
- model.MediaId = result.MediaId;
- if (!string.IsNullOrEmpty(result.MediaTitle))
- model.MediaTitle = result.MediaTitle;
- if (!string.IsNullOrEmpty(result.JournalsYear))
- model.JournalsYear = result.JournalsYear;
- if (result.JournalsCategory > 0)
- model.JournalsCategory = result.JournalsCategory;
- await _repository.UpdateAsync(model);
- if (result.MediaLibraryResults != null && result.MediaLibraryResults.Count > 0)
- {
- model.IsLibrary = result.MediaLibraryResults.Count > 0;
- //删除媒体库
- await mediaLibraryRepository.DeleteAsync(Q.Where(nameof(Entity.tede2.Media.MediaLibrary.MediaId), result.Id));
- foreach (var item in result.MediaLibraryResults)
- {
- var mediaLibrary = _mapper.Map<Entity.tede2.Media.MediaLibrary>(item);
- mediaLibrary.MediaId = result.Id;
- mediaLibrary.FileUrl = StringUtils.RemoveDomain(mediaLibrary.FileUrl);
- await mediaLibraryRepository.InsertAsync(mediaLibrary);
- }
- }
- if (result.MediaLableResults != null && result.MediaLableResults.Count > 0)
- {
- //删除媒体标签
- await mediaLableRepository.DeleteAsync(Q.Where(nameof(Entity.tede2.Media.MediaLable.MediaId), result.Id));
- //添加标签
- foreach (var item in result.MediaLableResults)
- {
- var mediaLable = _mapper.Map<Entity.tede2.Media.MediaLable>(item);
- mediaLable.MediaId = result.Id;
- await mediaLableRepository.InsertAsync(mediaLable);
- }
- }
- //提交事务
- transactionScope.Complete();
- }
- }
- catch (System.Exception ex)
- {
- throw new Common.Exceptions.BusinessException(ex.Message);
- }
- return true;
- }
- public async Task<int> CountAsync(string beginTime, string endTime)
- {
- return await _repository.CountAsync(Q.WhereDate(nameof(Entity.tede2.Media.Media.CreatedDate), ">=", beginTime).WhereDate(nameof(Entity.tede2.Media.Media.CreatedDate), "<=", endTime));
- }
- public async Task<int> CountAsync(SqlKata.Query query)
- {
- return await _repository.CountAsync(query);
- }
- public async Task<Entity.tede2.Media.Media> GetAsync(string autoNumber)
- {
- return await _repository.GetAsync(Q.Where(nameof(Entity.tede2.Media.Media.AutoNumber), autoNumber));
- }
- /// <summary>
- /// 获取书籍
- /// </summary>
- /// <param name="mediaId"></param>
- /// <returns></returns>
- public async Task<BookMediaResult> GetBookMediaResultAsync(int mediaId)
- {
- var result = await _repository.GetAsync(Q.Where(nameof(Entity.tede2.Media.Media.Id), mediaId).Where(nameof(Entity.tede2.Media.Media.IsChecked), true).Where(nameof(Entity.tede2.Media.Media.IsDelete), false));
- return _mapper.Map<BookMediaResult>(result);
- }
- /// <summary>
- /// 获取视频
- /// </summary>
- /// <param name="mediaId"></param>
- /// <returns></returns>
- public async Task<VideoMediaResult> GetVideoMediaResultAsync(int mediaId)
- {
- var result = await _repository.GetAsync(Q.Where(nameof(Entity.tede2.Media.Media.Id), mediaId).Where(nameof(Entity.tede2.Media.Media.IsChecked), true).Where(nameof(Entity.tede2.Media.Media.IsDelete), false));
- return _mapper.Map<VideoMediaResult>(result);
- }
- /// <summary>
- /// 根据
- /// </summary>
- /// <param name="mediaIds"></param>
- /// <returns></returns>
- public async Task<IEnumerable<NavigationMediaResult>> GetNavigationMediaResults(IEnumerable<int> mediaIds)
- {
- //获取媒体
- var query = Q.NewQuery();
- query.Select(nameof(Entity.tede2.Media.Media.Id));
- query.Select(nameof(Entity.tede2.Media.Media.ImageUrls));
- query.Select(nameof(Entity.tede2.Media.Media.Title));
- query.Select(nameof(Entity.tede2.Media.Media.Summary));
- query.Select(nameof(Entity.tede2.Media.Media.TeacherId));
- query.Select(nameof(Entity.tede2.Media.Media.AutoNumber));
- query.Select(nameof(Entity.tede2.Media.Media.Author));
- query.Select(nameof(Entity.tede2.Media.Media.MediaType));
- query.WhereIn(nameof(Entity.tede2.Media.Media.Id), mediaIds);
- query.Where(nameof(Entity.tede2.Media.Media.IsChecked), true);
- query.Where(nameof(Entity.tede2.Media.Media.IsDelete), false);
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsTop));
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsRecommend));
- query.ForPage(1, 10);
- return await _repository.GetAllAsync<NavigationMediaResult>(query);
- }
- /// <summary>
- /// 猜你喜欢
- /// </summary>
- /// <param name="mediaIds"></param>
- /// <returns></returns>
- public async Task<IEnumerable<NavigationMediaResult>> GetlikeMediaResults()
- {
- //获取媒体
- var query = Q.NewQuery();
- query.Select(nameof(Entity.tede2.Media.Media.Id));
- query.Select(nameof(Entity.tede2.Media.Media.ImageUrls));
- query.Select(nameof(Entity.tede2.Media.Media.Title));
- query.Select(nameof(Entity.tede2.Media.Media.Summary));
- query.Select(nameof(Entity.tede2.Media.Media.TeacherId));
- query.Select(nameof(Entity.tede2.Media.Media.AutoNumber));
- query.Select(nameof(Entity.tede2.Media.Media.Author));
- query.Select(nameof(Entity.tede2.Media.Media.MediaType));
- query.Where(nameof(Entity.tede2.Media.Media.IsTop), true);
- query.Where(nameof(Entity.tede2.Media.Media.IsChecked), true);
- query.Where(nameof(Entity.tede2.Media.Media.IsDelete), false);
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsTop));
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsRecommend));
- query.ForPage(1, 10);
- return await _repository.GetAllAsync<NavigationMediaResult>(query);
- }
- /// <summary>
- /// 推荐
- /// </summary>
- /// <param name="mediaIds"></param>
- /// <returns></returns>
- public async Task<IEnumerable<NavigationMediaResult>> GetRecommendMediaResults()
- {
- //获取媒体
- var query = Q.NewQuery();
- query.Select(nameof(Entity.tede2.Media.Media.Id));
- query.Select(nameof(Entity.tede2.Media.Media.ImageUrls));
- query.Select(nameof(Entity.tede2.Media.Media.Title));
- query.Select(nameof(Entity.tede2.Media.Media.Summary));
- query.Select(nameof(Entity.tede2.Media.Media.TeacherId));
- query.Select(nameof(Entity.tede2.Media.Media.AutoNumber));
- query.Select(nameof(Entity.tede2.Media.Media.Author));
- query.Select(nameof(Entity.tede2.Media.Media.MediaType));
- query.Where(nameof(Entity.tede2.Media.Media.IsRecommend), true);
- query.Where(nameof(Entity.tede2.Media.Media.IsChecked), true);
- query.Where(nameof(Entity.tede2.Media.Media.IsDelete), false);
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsTop));
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsRecommend));
- query.ForPage(1, 10);
- return await _repository.GetAllAsync<NavigationMediaResult>(query);
- }
- /// <summary>
- /// 排行榜
- /// </summary>
- /// <param name="request"></param>
- /// <returns></returns>
- public async Task<IEnumerable<RankingListResult>> GetRankingListResults(RankingListRequest request)
- {
- //获取媒体
- var query = Q.NewQuery();
- query.Select(nameof(Entity.tede2.Media.Media.Id));
- query.Select(nameof(Entity.tede2.Media.Media.ImageUrls));
- query.Select(nameof(Entity.tede2.Media.Media.Title));
- query.Select(nameof(Entity.tede2.Media.Media.Summary));
- query.Select(nameof(Entity.tede2.Media.Media.TeacherId));
- query.Select(nameof(Entity.tede2.Media.Media.AutoNumber));
- query.Select(nameof(Entity.tede2.Media.Media.Author));
- query.Select(nameof(Entity.tede2.Media.Media.MediaType));
- query.Select(nameof(Entity.tede2.Media.Media.Summary));
- query.Select(nameof(Entity.tede2.Media.Media.CommentScore));
- //1 热搜 2热书榜 3 课程榜 4Top 100 新书 5文献头条 6试听榜 7大众热评 8Top 100 专著
- if (request.DataTypeValue > 0)
- {
- //1 热搜
- if (request.DataTypeValue == RankingListConst.HotSearch.GetHashCode())
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.ReadCount));
- //2热书榜
- if (request.DataTypeValue == RankingListConst.ReadBook.GetHashCode())
- {
- query.Where(nameof(Entity.tede2.Media.Media.MediaType), ResourceTypeConst.Book.GetHashCode());
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.ReadCount));
- }
- //3 课程榜
- if (request.DataTypeValue == RankingListConst.Article.GetHashCode())
- {
- query.Where(nameof(Entity.tede2.Media.Media.MediaType), ResourceTypeConst.Article.GetHashCode());
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.ReadCount));
- }
- //Top 100 新书
- if (request.DataTypeValue == RankingListConst.NewBook.GetHashCode())
- {
- query.Where(nameof(Entity.tede2.Media.Media.MediaType), ResourceTypeConst.Book.GetHashCode());
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.CreatedDate));
- }
- //文献头条
- if (request.DataTypeValue == RankingListConst.ArticleTop.GetHashCode())
- {
- query.Where(nameof(Entity.tede2.Media.Media.MediaType), ResourceTypeConst.Article.GetHashCode());
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsTop));
- }
- if (request.DataTypeValue == RankingListConst.Audio.GetHashCode())
- {
- query.Where(nameof(Entity.tede2.Media.Media.MediaType), ResourceTypeConst.Audio.GetHashCode());
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.ReadCount));
- }
- if (request.DataTypeValue == RankingListConst.HotComment.GetHashCode())
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.CommentScore));
- if (request.DataTypeValue == RankingListConst.CollectionBook.GetHashCode())
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.CollectCount));
- }
- query.Where(nameof(Entity.tede2.Media.Media.IsChecked), true);
- query.Where(nameof(Entity.tede2.Media.Media.IsDelete), false);
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsTop));
- query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsRecommend));
- query.ForPage(request.Page, request.PerPage);
- return await _repository.GetAllAsync<RankingListResult>(query);
- }
- }
- }
|