web

package
v0.0.0-...-c96783f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArticles

func GetArticles(ctx iris.Context)

文章列表

func GetCategoryArticles

func GetCategoryArticles(ctx iris.Context)

分类文章列表

func GetTagArticles

func GetTagArticles(ctx iris.Context)

标签文章列表

func GetTagTopics

func GetTagTopics(ctx iris.Context)

标签主题列表

func GetTags

func GetTags(ctx iris.Context)

所有标签列表

func GetTopics

func GetTopics(ctx context.Context)

主题列表

func GetUserArticles

func GetUserArticles(ctx context.Context)

用户中心 - 用户所有的文章

func GetUserFavorites

func GetUserFavorites(ctx context.Context)

用户中心 - 用户所有的搜藏列表

func GetUserMessages

func GetUserMessages(ctx context.Context)

用户中心 - 消息列表

func GetUserTags

func GetUserTags(ctx context.Context)

用户中心 - 用户所有的标签

func GetUserTopics

func GetUserTopics(ctx context.Context)

用户中心 - 主题列表

Types

type ArticleController

type ArticleController struct {
	Ctx iris.Context
}

func (*ArticleController) GetBaidu

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

提交百度网址

func (*ArticleController) GetBy

func (this *ArticleController) GetBy(articleId int64)

文章详情页

func (*ArticleController) GetCreate

func (this *ArticleController) GetCreate()

创建文章页面

func (*ArticleController) GetEditBy

func (this *ArticleController) GetEditBy(articleId int64)

编辑文章页面

func (*ArticleController) GetRedirectBy

func (this *ArticleController) GetRedirectBy(articleId int64)

跳转到文章的原始链接

func (*ArticleController) PostCreate

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

创建文章

func (*ArticleController) PostDeleteBy

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

删除文章

func (*ArticleController) PostEdit

func (this *ArticleController) PostEdit() *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 iris.Context
}

type CommentController

type CommentController struct {
	Ctx iris.Context
}

func (*CommentController) GetList

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

func (*CommentController) PostCreate

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

type IndexController

type IndexController struct {
	Ctx iris.Context
}

func (*IndexController) Any

func (this *IndexController) Any() mvc.View

func (*IndexController) GetAbout

func (this *IndexController) GetAbout() mvc.View

type OauthClientController

type OauthClientController struct {
	Ctx context.Context
}

func (*OauthClientController) Any

func (c *OauthClientController) Any()

跳转到授权页

func (*OauthClientController) AnyCallback

func (c *OauthClientController) AnyCallback()

回调地址

func (*OauthClientController) AnyRefresh

func (c *OauthClientController) AnyRefresh() *simple.JsonResult

通过refreshToken重新换取accessToken

type OauthServerController

type OauthServerController struct {
	Ctx context.Context
}

func (*OauthServerController) AnyAuthorize

func (c *OauthServerController) AnyAuthorize()

请求授权,返回code

func (*OauthServerController) AnyToken

func (c *OauthServerController) AnyToken()

通过code换取令牌

func (*OauthServerController) AnyUserinfo

func (c *OauthServerController) AnyUserinfo() *simple.JsonResult

获取用户信息

func (*OauthServerController) GetLogin

func (c *OauthServerController) GetLogin() mvc.View

登录页面

func (*OauthServerController) PostLogin

func (c *OauthServerController) PostLogin()

提交登录

type TagController

type TagController struct {
	Ctx iris.Context
}

func (*TagController) GetAdd

func (this *TagController) GetAdd()

添加标签页面

func (*TagController) GetUsertags

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

用户标签列表

func (*TagController) PostAdd

func (this *TagController) PostAdd()

添加标签

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)

func (*TopicController) GetCreate

func (this *TopicController) GetCreate()

func (*TopicController) GetEditBy

func (this *TopicController) GetEditBy(topicId int64)

func (*TopicController) PostCreate

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

func (*TopicController) PostEditBy

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

func (*TopicController) PostFavoriteBy

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

收藏

type UploadController

type UploadController struct {
	Ctx iris.Context
}

func (*UploadController) Post

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

func (*UploadController) PostEditor

func (this *UploadController) PostEditor()

编辑器中上传

func (*UploadController) PostFetch

func (this *UploadController) PostFetch()

type UserController

type UserController struct {
	Ctx iris.Context
}

func (*UserController) AnySignout

func (this *UserController) AnySignout()

退出登录

func (*UserController) GetBy

func (this *UserController) GetBy(userId int64)

用户主页

func (*UserController) GetCurrent

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

当前登录用户

func (*UserController) GetEditBy

func (this *UserController) GetEditBy(userId int64)

编辑资料页面

func (*UserController) GetGithubBind

func (this *UserController) GetGithubBind()

Github绑定页面

func (*UserController) GetGithubCallback

func (this *UserController) GetGithubCallback()

Github回调地址

func (*UserController) GetGithubLogin

func (this *UserController) GetGithubLogin()

跳转到Github登录页面

func (*UserController) GetMsgcount

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

未读消息数量

func (*UserController) GetSignin

func (this *UserController) GetSignin()

登录页面

func (*UserController) GetSignup

func (this *UserController) GetSignup()

注册

func (*UserController) PostEditBy

func (this *UserController) PostEditBy(userId int64)

提交编辑资料

func (*UserController) PostGithubBind

func (this *UserController) PostGithubBind()

Github提交绑定

func (*UserController) PostSignin

func (this *UserController) PostSignin()

提交登录

func (*UserController) PostSignup

func (this *UserController) PostSignup()

注册

type UserTagController

type UserTagController struct {
	Ctx iris.Context
}

func (*UserTagController) GetList

func (this *UserTagController) GetList() mvc.View

标签列表页面

Jump to

Keyboard shortcuts

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