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.Model.Entities;
|
||||
@@ -41,5 +42,18 @@ namespace CoreCms.Net.IServices
|
||||
Task<IPageList<CoreCmsArticle>> QueryPageAsync(Expression<Func<CoreCmsArticle, bool>> predicate,
|
||||
Expression<Func<CoreCmsArticle, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||
int pageSize = 20);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 重写根据条件查询分页数据
|
||||
/// </summary>
|
||||
/// <param name="predicate">判断集合</param>
|
||||
/// <param name="orderByType">排序方式</param>
|
||||
/// <param name="orderByExpression"></param>
|
||||
/// <param name="take"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<CoreCmsArticle>> QueryListAsync(Expression<Func<CoreCmsArticle, bool>> predicate,
|
||||
Expression<Func<CoreCmsArticle, object>> orderByExpression, OrderByType orderByType, int take);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user