C# Class Randao.Web.Controllers.ArticleController

Inheritance: CustomerController
Exibir arquivo Open project: fds/DKBD

Public Methods

Method Description
ArticleController ( ArticleContentService _articleContentService, ArticleCommentService _articleCommentService, ArticleAttentionService _articleAttentionService, ArticleCollectService _articleCollectService, ArticleCategoryService _articleCategoryService ) : System
Get ( int categoryId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult

获取帖子列表接口(不包含帖子具体内容)

GetCommentList ( long articleId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult

获取评论

GetDetail ( long articleId, int categoryId ) : System.Web.Mvc.JsonResult

获取帖子详情

PublishCommentTest ( ) : System.Web.Mvc.ActionResult
PublishTest ( ) : System.Web.Mvc.ActionResult
UploadTest ( ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
AddAttention ( OauthToken token, long attentionUserKeyId ) : System.Web.Mvc.JsonResult
CollectArticle ( OauthToken token, long articleId, int categoryId ) : System.Web.Mvc.JsonResult
DeleteCollect ( OauthToken token, long collectId ) : System.Web.Mvc.JsonResult
GetAttention ( OauthToken token, long userKeyId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
GetCategorys ( ) : System.Web.Mvc.JsonResult
GetCollectArticle ( OauthToken token, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
GetCollectArticleCount ( OauthToken token ) : System.Web.Mvc.JsonResult
GetMy ( OauthToken token, int categoryId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
GetNoVerify ( OauthToken token, int categoryId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
Publish ( OauthToken token, int categoryId, string title, string content ) : System.Web.Mvc.JsonResult
PublishComment ( OauthToken token, long articleId, int articleCategoryId, string content ) : System.Web.Mvc.JsonResult
SetCount ( OauthToken token, long articleId, int articleCategoryId, int type ) : System.Web.Mvc.JsonResult
UploadImage ( OauthToken token, string content ) : System.Web.Mvc.JsonResult

Method Details

ArticleController() public method

public ArticleController ( ArticleContentService _articleContentService, ArticleCommentService _articleCommentService, ArticleAttentionService _articleAttentionService, ArticleCollectService _articleCollectService, ArticleCategoryService _articleCategoryService ) : System
_articleContentService Randao.Core.Service.ArticleContentService
_articleCommentService Randao.Core.Service.ArticleCommentService
_articleAttentionService Randao.Core.Service.ArticleAttentionService
_articleCollectService Randao.Core.Service.ArticleCollectService
_articleCategoryService Randao.Core.Service.ArticleCategoryService
return System

Get() public method

获取帖子列表接口(不包含帖子具体内容)
public Get ( int categoryId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
categoryId int
page int
pageSize int
return System.Web.Mvc.JsonResult

GetCommentList() public method

获取评论
public GetCommentList ( long articleId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
articleId long
page int
pageSize int
return System.Web.Mvc.JsonResult

GetDetail() public method

获取帖子详情
public GetDetail ( long articleId, int categoryId ) : System.Web.Mvc.JsonResult
articleId long
categoryId int
return System.Web.Mvc.JsonResult

PublishCommentTest() public method

public PublishCommentTest ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

PublishTest() public method

public PublishTest ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

UploadTest() public method

public UploadTest ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult