mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:23:26 +08:00
【新增】WebApi文章Controller新增【获取最新文章】【获取文章栏目】两个接口
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
***********************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.IRepository;
|
||||
@@ -61,5 +62,19 @@ namespace CoreCms.Net.Services
|
||||
{
|
||||
return await _dal.QueryPageAsync(predicate, orderByExpression, orderByType, pageIndex, pageSize);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 重写根据条件查询分页数据
|
||||
/// </summary>
|
||||
/// <param name="predicate">判断集合</param>
|
||||
/// <param name="orderByType">排序方式</param>
|
||||
/// <param name="orderByExpression"></param>
|
||||
/// <param name="take"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<List<CoreCmsArticle>> QueryListAsync(Expression<Func<CoreCmsArticle, bool>> predicate, Expression<Func<CoreCmsArticle, object>> orderByExpression, OrderByType orderByType, int take)
|
||||
{
|
||||
return await _dal.QueryListAsync(predicate, orderByExpression, orderByType, take);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user