admincontroller

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: 36 Imported by: 0

Documentation

Index

Constants

View Source
const MaxImgWidth = 750

Variables

This section is empty.

Functions

func AddBlogCtr

func AddBlogCtr(c *gin.Context)

func AddCateCtr

func AddCateCtr(c *gin.Context)

func AdminPermissionCheck

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

func DeleteBlogCtr

func DeleteBlogCtr(c *gin.Context)

func EditBlogCtr

func EditBlogCtr(c *gin.Context)

func EditCateCtr

func EditCateCtr(c *gin.Context)

func ExportCtr

func ExportCtr(c *gin.Context)

Export

func FileUpload

func FileUpload(c *gin.Context)

func Files

func Files(c *gin.Context)

func ListBlogCtr

func ListBlogCtr(c *gin.Context)

ListBlogCtr is list blogs for admin

func ListCateCtr

func ListCateCtr(c *gin.Context)

func ListTagCtr

func ListTagCtr(c *gin.Context)

func LoginCtr

func LoginCtr(c *gin.Context)

func LoginProcessCtr

func LoginProcessCtr(c *gin.Context)

func LoginStep3Ctr added in v1.5.0

func LoginStep3Ctr(c *gin.Context)

func LogoutCtr

func LogoutCtr(c *gin.Context)

func SaveAddCateCtr

func SaveAddCateCtr(c *gin.Context)

func SaveAddTagCtr

func SaveAddTagCtr(c *gin.Context)

func SaveBlogAddCtr

func SaveBlogAddCtr(c *gin.Context)

func SaveBlogEditCtr

func SaveBlogEditCtr(c *gin.Context)

func SaveEditCateCtr

func SaveEditCateCtr(c *gin.Context)

func UploadByAwsS3 added in v1.4.0

func UploadByAwsS3(c *gin.Context) (string, bool)

func UploadByLocalStorage added in v1.4.0

func UploadByLocalStorage(c *gin.Context) (string, bool)

Types

type AdminLoginForm

type AdminLoginForm struct {
	Username string `form:"username" binding:"required"`
	Password string `form:"password" binding:"required"`
}

AdminLoginForm is the login form for Admin

Jump to

Keyboard shortcuts

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