controllers

package
v0.0.0-...-c285f8c Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateUser

func ActivateUser(c *gin.Context)

ActivateUser 激活用户

func ApplyForActivate

func ApplyForActivate(c *gin.Context)

ApplyForActivate 向管理员申请激活

func BanUser

func BanUser(c *gin.Context)

BanUser 封禁用户

func GetApplications

func GetApplications(c *gin.Context)

GetApplications 管理员查看用户申请

func GetArticle

func GetArticle(c *gin.Context)

GetArticle 获取某文章详细信息

func GetCurrentRepo

func GetCurrentRepo(c *gin.Context)

GetCurrentRepo 获取当前仓库

func GetCurrentUserFromCtx

func GetCurrentUserFromCtx(c *gin.Context) *model.User

GetCurrentUserFromCtx 获取当前用户

func GetRepos

func GetRepos(c *gin.Context)

GetRepos 获取所有 Repo 列表

func GetSiteConfig

func GetSiteConfig(c *gin.Context)

GetSiteConfig 获取用户站点配置

func GetTagView

func GetTagView(c *gin.Context)

GetTagView 获取某 Tag 的基本信息

func GetTopTags

func GetTopTags(c *gin.Context)

GetTopTags 获取某 Repo 下的一级标签列表

func Ping

func Ping(c *gin.Context)

func RefreshAll

func RefreshAll(c *gin.Context)

RefreshAll 刷新所有内容

func RefreshByRepo

func RefreshByRepo(c *gin.Context)

RefreshByRepo 刷新某 Repo 下的 articles

func RefreshByTag

func RefreshByTag(c *gin.Context)

RefreshByTag 刷新某 Tag 下的 articles

func RejectUserApplication

func RejectUserApplication(c *gin.Context)

RejectUserApplication 拒绝用户申请

func Search(c *gin.Context)

Search 搜索

func SetCurrentRepo

func SetCurrentRepo(c *gin.Context)

SetCurrentRepo 设置当前的仓库

func UserLogin

func UserLogin(c *gin.Context)

UserLogin 用户登录

func UserLogout

func UserLogout(c *gin.Context)

UserLogout 用户登出

func UserRegister

func UserRegister(c *gin.Context)

UserRegister 用户注册

func UserResetPassword

func UserResetPassword(c *gin.Context)

UserPasswordReset 用户重置密码

Types

This section is empty.

Jump to

Keyboard shortcuts

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