controller

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTitle

func ParseTitle(title sql.NullString, username interface{}) string

func UserPermissionCheck

func UserPermissionCheck(c *gin.Context) (err error, username interface{}, isAdmin interface{})

func UserPermissionCheckDefaultAllow

func UserPermissionCheckDefaultAllow(c *gin.Context) (err error, username interface{}, isAdmin interface{})

Types

type Api

type Api struct {
}

func (*Api) NavAll

func (a *Api) NavAll(c *gin.Context)

func (*Api) NavLoad

func (a *Api) NavLoad(c *gin.Context)

func (*Api) Resort added in v1.1.0

func (a *Api) Resort(c *gin.Context)

type FrontController

type FrontController struct {
}

func (*FrontController) AboutCtr

func (fc *FrontController) AboutCtr(c *gin.Context)

func (*FrontController) ArticleHistoryCtr added in v1.3.0

func (fc *FrontController) ArticleHistoryCtr(c *gin.Context)

func (*FrontController) ChargeCtr

func (fc *FrontController) ChargeCtr(c *gin.Context)

func (*FrontController) CountViewCtr

func (fc *FrontController) CountViewCtr(c *gin.Context)

func (*FrontController) DemoPongoCtr

func (fc *FrontController) DemoPongoCtr(c *gin.Context)

func (*FrontController) HomeCtr

func (fc *FrontController) HomeCtr(c *gin.Context)

func (*FrontController) ListTagCtr

func (fc *FrontController) ListTagCtr(c *gin.Context)

func (*FrontController) LogoutCtr

func (fc *FrontController) LogoutCtr(c *gin.Context)

func (*FrontController) PingCtr

func (fc *FrontController) PingCtr(c *gin.Context)

func (*FrontController) SearchCtr

func (fc *FrontController) SearchCtr(c *gin.Context)

func (*FrontController) ViewAltCtr

func (fc *FrontController) ViewAltCtr(c *gin.Context)

func (*FrontController) ViewArticleHistoryCtr added in v1.3.0

func (fc *FrontController) ViewArticleHistoryCtr(c *gin.Context)

func (*FrontController) ViewCtr

func (fc *FrontController) ViewCtr(c *gin.Context)

type RSS

type RSS struct {
}

RSS controll group

func (*RSS) Alter

func (rss *RSS) Alter(c *gin.Context)

func (*RSS) Out

func (rss *RSS) Out(c *gin.Context)

Out Render and output RSS TODO 增加缓存

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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