|
@@ -17,6 +17,7 @@ using GxPress.EnumConst;
|
|
|
using GxPress.Request.ArticleGroup;
|
|
|
using Dapper;
|
|
|
using GxPress.Request.AppChannel;
|
|
|
+using GxPress.Result.AppChannel;
|
|
|
|
|
|
namespace GxPress.Repository.Implement.Media
|
|
|
{
|
|
@@ -915,9 +916,9 @@ namespace GxPress.Repository.Implement.Media
|
|
|
/// app频道
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<PagedList<MediaCathedraResult>> GetAppChannelsAsync(AppChannelSearchRequest request)
|
|
|
+ public async Task<PagedList<MediaChannelCategoryResult>> GetAppChannelsAsync(AppChannelSearchRequest request)
|
|
|
{
|
|
|
- var resut = new PagedList<MediaCathedraResult>();
|
|
|
+ var resut = new PagedList<MediaChannelCategoryResult>();
|
|
|
var query = Q.NewQuery();
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.Id));
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.ImageUrls));
|
|
@@ -927,6 +928,7 @@ namespace GxPress.Repository.Implement.Media
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.ReadCount));
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.CreatedDate));
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.Summary));
|
|
|
+ query.Select(nameof(Entity.tede2.Media.Media.CommentScore));
|
|
|
query.WhereIn(nameof(Entity.tede2.Media.Media.Id), request.Ids);
|
|
|
if (!string.IsNullOrEmpty(request.KeyWord))
|
|
|
query.WhereLike(nameof(Entity.tede2.Media.Media.Title), $"%{request.KeyWord}%");
|
|
@@ -939,7 +941,7 @@ namespace GxPress.Repository.Implement.Media
|
|
|
else
|
|
|
query.OrderByDesc(nameof(Entity.tede2.Media.Media.CreatedDate));
|
|
|
query.ForPage(request.Page, request.PerPage);
|
|
|
- resut.Items = await _repository.GetAllAsync<MediaCathedraResult>(query);
|
|
|
+ resut.Items = await _repository.GetAllAsync<MediaChannelCategoryResult>(query);
|
|
|
foreach (var item in resut.Items)
|
|
|
item.ImageUrls = StringUtils.AddDomain(item.ImageUrls);
|
|
|
return resut;
|