Method | Description | |
---|---|---|
CheckAlias ( string alias, string uid ) : Task |
判断alias是否唯一
|
|
Delete ( string postIds ) : Task |
删除文章(软删除)
|
|
GetArticles ( int pageIndex, int pageSize, string sortName, string sortOrder, string searchText, string cateAlias, string uniqueId, string title ) : Task |
获取文章管理页面列表
|
|
GetPostByAlias ( string id ) : Task |
根据alias获取文章
|
|
GetPostById ( string id ) : Task |
根据id获取文章
|
|
GetPosts ( string cateAlias, int pageIndex, int pageSize, SortBy sortBy = SortBy.Latest, FiltType filtType = FiltType.Content, string keyword = "" ) : Task |
获取筛选条件下的所有文章
|
|
Insert ( |
新增文章
|
|
PostRepository ( ) : System | ||
Update ( |
更新文章
|
Method | Description | |
---|---|---|
GetPostCountByCate ( string cateAlias ) : Task |
public CheckAlias ( string alias, string uid ) : Task |
||
alias | string | |
uid | string | |
return | Task |
public GetArticles ( int pageIndex, int pageSize, string sortName, string sortOrder, string searchText, string cateAlias, string uniqueId, string title ) : Task |
||
pageIndex | int | |
pageSize | int | |
sortName | string | |
sortOrder | string | |
searchText | string | |
cateAlias | string | |
uniqueId | string | |
title | string | |
return | Task |
public GetPosts ( string cateAlias, int pageIndex, int pageSize, SortBy sortBy = SortBy.Latest, FiltType filtType = FiltType.Content, string keyword = "" ) : Task |
||
cateAlias | string | |
pageIndex | int | |
pageSize | int | |
sortBy | SortBy | |
filtType | FiltType | |
keyword | string | |
return | Task |
public Insert ( |
||
post | ||
return | System.Threading.Tasks.Task |
public Update ( |
||
post | ||
return | Task |