C# Class Randao.Core.Service.ArticleContentService

帖子业务类
Show file Open project: fds/DKBD Class Usage Examples

Public Methods

Method Description
ArticleContentService ( ArticleCategoryService _articleCategoryService, MemberService _memberService ) : System
GetArticle ( int categoryId, long articleID ) : ReturnResult
GetArticleContentList ( int categoryId, long userKeyId, bool isverify = true, int page = 1, int pageSize = 10 ) : ReturnResult>
GetNoVerifyArticle ( int categoryId, long userKeyId, int page = 1, int pageSize = 10 ) : ReturnResult>
PublishArticle ( ArticleContentDataContract article ) : ReturnResult
UpdateArticleCount ( long articleId, int categoryId, long userKeyId, ArticleCountEnum articleCountEnum ) : ReturnResult

Method Details

ArticleContentService() public method

public ArticleContentService ( ArticleCategoryService _articleCategoryService, MemberService _memberService ) : System
_articleCategoryService ArticleCategoryService
_memberService MemberService
return System

GetArticle() public method

public GetArticle ( int categoryId, long articleID ) : ReturnResult
categoryId int
articleID long
return ReturnResult

GetArticleContentList() public method

public GetArticleContentList ( int categoryId, long userKeyId, bool isverify = true, int page = 1, int pageSize = 10 ) : ReturnResult>
categoryId int
userKeyId long
isverify bool
page int
pageSize int
return ReturnResult>

GetNoVerifyArticle() public method

public GetNoVerifyArticle ( int categoryId, long userKeyId, int page = 1, int pageSize = 10 ) : ReturnResult>
categoryId int
userKeyId long
page int
pageSize int
return ReturnResult>

PublishArticle() public method

public PublishArticle ( ArticleContentDataContract article ) : ReturnResult
article Randao.DataContracts.ArticleContentDataContract
return ReturnResult

UpdateArticleCount() public method

public UpdateArticleCount ( long articleId, int categoryId, long userKeyId, ArticleCountEnum articleCountEnum ) : ReturnResult
articleId long
categoryId int
userKeyId long
articleCountEnum ArticleCountEnum
return ReturnResult