C# Класс Randao.Web.Controllers.ArticleController

Наследование: CustomerController
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ArticleController() публичный Метод

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
Результат System

Get() публичный Метод

获取帖子列表接口(不包含帖子具体内容)
public Get ( int categoryId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
categoryId int
page int
pageSize int
Результат System.Web.Mvc.JsonResult

GetCommentList() публичный Метод

获取评论
public GetCommentList ( long articleId, int page = 1, int pageSize = PAGESIZE ) : System.Web.Mvc.JsonResult
articleId long
page int
pageSize int
Результат System.Web.Mvc.JsonResult

GetDetail() публичный Метод

获取帖子详情
public GetDetail ( long articleId, int categoryId ) : System.Web.Mvc.JsonResult
articleId long
categoryId int
Результат System.Web.Mvc.JsonResult

PublishCommentTest() публичный Метод

public PublishCommentTest ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult

PublishTest() публичный Метод

public PublishTest ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult

UploadTest() публичный Метод

public UploadTest ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult