api

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleController

type ArticleController struct {
	Ctx context.Context
}

func (*ArticleController) GetArticles

func (this *ArticleController) GetArticles() *simple.JsonResult

文章列表

func (*ArticleController) GetBy

func (this *ArticleController) GetBy(articleId int64) *simple.JsonResult

文章详情

func (*ArticleController) GetCategoryArticles

func (this *ArticleController) GetCategoryArticles() *simple.JsonResult

分类文章列表

func (*ArticleController) GetEditBy

func (this *ArticleController) GetEditBy(articleId int64) *simple.JsonResult

编辑时获取详情

func (*ArticleController) GetRecent

func (this *ArticleController) GetRecent() *simple.JsonResult

最近文章

func (*ArticleController) GetRedirectBy

func (this *ArticleController) GetRedirectBy(articleId int64) *simple.JsonResult

文章跳转链接

func (*ArticleController) GetRelatedBy

func (this *ArticleController) GetRelatedBy(articleId int64) *simple.JsonResult

相关文章

func (*ArticleController) GetTagArticles

func (this *ArticleController) GetTagArticles() *simple.JsonResult

标签文章列表

func (*ArticleController) GetUserArticles

func (this *ArticleController) GetUserArticles() *simple.JsonResult

用户文章列表

func (*ArticleController) GetUserNewestBy

func (this *ArticleController) GetUserNewestBy(userId int64) *simple.JsonResult

用户最新的文章

func (*ArticleController) GetUserRecent

func (this *ArticleController) GetUserRecent() *simple.JsonResult

用户最近的文章

func (*ArticleController) PostCreate

func (this *ArticleController) PostCreate() *simple.JsonResult

发表文章

func (*ArticleController) PostDeleteBy

func (this *ArticleController) PostDeleteBy(articleId int64) *simple.JsonResult

删除文章

func (*ArticleController) PostEditBy

func (this *ArticleController) PostEditBy(articleId int64) *simple.JsonResult

编辑文章

func (*ArticleController) PostFavoriteBy

func (this *ArticleController) PostFavoriteBy(articleId int64) *simple.JsonResult

收藏文章

func (*ArticleController) PostWxpublish

func (this *ArticleController) PostWxpublish() *simple.JsonResult

微信采集发布接口

type CategoryController

type CategoryController struct {
	Ctx context.Context
}

func (*CategoryController) GetBy

func (this *CategoryController) GetBy(categoryId int64) *simple.JsonResult

type CommentController

type CommentController struct {
	Ctx context.Context
}

func (*CommentController) GetList

func (this *CommentController) GetList() *simple.JsonResult

func (*CommentController) PostCreate

func (this *CommentController) PostCreate() *simple.JsonResult

type ConfigController

type ConfigController struct {
	Ctx context.Context
}

func (*ConfigController) GetConfigs

func (this *ConfigController) GetConfigs() *simple.JsonResult

type FavoriteController

type FavoriteController struct {
	Ctx context.Context
}

func (*FavoriteController) GetDelete

func (this *FavoriteController) GetDelete() *simple.JsonResult

取消收藏

func (*FavoriteController) GetFavorited

func (this *FavoriteController) GetFavorited() *simple.JsonResult

是否收藏了

type LoginController

type LoginController struct {
	Ctx iris.Context
}

func (*LoginController) GetGithub

func (this *LoginController) GetGithub() *simple.JsonResult

获取Github授权地址

func (*LoginController) GetGithubCallback

func (this *LoginController) GetGithubCallback() *simple.JsonResult

获取Github回调信息获取

func (*LoginController) GetGithubUserBy

func (this *LoginController) GetGithubUserBy(githubUserId int64) *simple.JsonResult

获取GithubUser

func (*LoginController) GetSignout

func (this *LoginController) GetSignout() *simple.JsonResult

退出登录

func (*LoginController) PostGithubBind

func (this *LoginController) PostGithubBind() *simple.JsonResult

Github绑定

func (*LoginController) PostSignin

func (this *LoginController) PostSignin() *simple.JsonResult

用户名密码登录

type TagController

type TagController struct {
	Ctx context.Context
}

func (*TagController) GetActive

func (this *TagController) GetActive() *simple.JsonResult

活跃标签

func (*TagController) GetBy

func (this *TagController) GetBy(tagId int64) *simple.JsonResult

标签详情

func (*TagController) GetRecommendtags

func (this *TagController) GetRecommendtags() *simple.JsonResult

推荐标签

func (*TagController) GetTags

func (this *TagController) GetTags() *simple.JsonResult

标签列表

func (*TagController) PostAutocomplete

func (this *TagController) PostAutocomplete() *simple.JsonResult

标签自动完成

type TopicController

type TopicController struct {
	Ctx iris.Context
}

func (*TopicController) GetBy

func (this *TopicController) GetBy(topicId int64) *simple.JsonResult

帖子详情

func (*TopicController) GetEditBy

func (this *TopicController) GetEditBy(topicId int64) *simple.JsonResult

编辑时获取详情

func (*TopicController) GetFavoriteBy

func (this *TopicController) GetFavoriteBy(topicId int64) *simple.JsonResult

收藏

func (*TopicController) GetGithub

func (this *TopicController) GetGithub() *simple.JsonResult

func (*TopicController) GetRecent

func (this *TopicController) GetRecent() *simple.JsonResult

最新帖子

func (*TopicController) GetTagTopics

func (this *TopicController) GetTagTopics() *simple.JsonResult

标签帖子列表

func (*TopicController) GetTopics

func (this *TopicController) GetTopics() *simple.JsonResult

帖子列表

func (*TopicController) GetUserRecent

func (this *TopicController) GetUserRecent() *simple.JsonResult

用户最近的帖子

func (*TopicController) GetUserTopics

func (this *TopicController) GetUserTopics() *simple.JsonResult

用户帖子列表

func (*TopicController) PostCreate

func (this *TopicController) PostCreate() *simple.JsonResult

发表帖子

func (*TopicController) PostDeleteBy

func (this *TopicController) PostDeleteBy(topicId int64) *simple.JsonResult

删除帖子

func (*TopicController) PostEditBy

func (this *TopicController) PostEditBy(topicId int64) *simple.JsonResult

编辑帖子

type UploadController

type UploadController struct {
	Ctx iris.Context
}

func (*UploadController) Post

func (this *UploadController) Post() *simple.JsonResult

type UserController

type UserController struct {
	Ctx context.Context
}

func (*UserController) GetActive

func (this *UserController) GetActive() *simple.JsonResult

活跃用户

func (*UserController) GetBy

func (this *UserController) GetBy(userId int64) *simple.JsonResult

用户详情

func (*UserController) GetCurrent

func (this *UserController) GetCurrent() *simple.JsonResult

获取当前登录用户

func (*UserController) GetFavorites

func (this *UserController) GetFavorites() *simple.JsonResult

用户收藏

func (*UserController) GetMessages

func (this *UserController) GetMessages() *simple.JsonResult

用户消息

func (*UserController) GetMsgcount

func (this *UserController) GetMsgcount() *simple.JsonResult

未读消息数量

func (*UserController) PostEditBy

func (this *UserController) PostEditBy(userId int64) *simple.JsonResult

修改用户资料

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL