Documentation ¶
Index ¶
- Constants
- func AddBlogCtr(c *gin.Context)
- func AddCateCtr(c *gin.Context)
- func AdminPermissionCheck(c *gin.Context) (err error, username interface{}, isAdmin interface{})
- func DeleteBlogCtr(c *gin.Context)
- func EditBlogCtr(c *gin.Context)
- func EditCateCtr(c *gin.Context)
- func ExportCtr(c *gin.Context)
- func FileUpload(c *gin.Context)
- func Files(c *gin.Context)
- func ListBlogCtr(c *gin.Context)
- func ListCateCtr(c *gin.Context)
- func ListTagCtr(c *gin.Context)
- func LoginCtr(c *gin.Context)
- func LoginProcessCtr(c *gin.Context)
- func LoginStep3Ctr(c *gin.Context)
- func LogoutCtr(c *gin.Context)
- func SaveAddCateCtr(c *gin.Context)
- func SaveAddTagCtr(c *gin.Context)
- func SaveBlogAddCtr(c *gin.Context)
- func SaveBlogEditCtr(c *gin.Context)
- func SaveEditCateCtr(c *gin.Context)
- func UploadByAwsS3(c *gin.Context) (string, bool)
- func UploadByLocalStorage(c *gin.Context) (string, bool)
- type AdminLoginForm
Constants ¶
View Source
const MaxImgWidth = 750
Variables ¶
This section is empty.
Functions ¶
func AddBlogCtr ¶
func AddCateCtr ¶
func AdminPermissionCheck ¶
func DeleteBlogCtr ¶
func EditBlogCtr ¶
func EditCateCtr ¶
func FileUpload ¶
func ListCateCtr ¶
func ListTagCtr ¶
func LoginProcessCtr ¶
func LoginStep3Ctr ¶ added in v1.5.0
func SaveAddCateCtr ¶
func SaveAddTagCtr ¶
func SaveBlogAddCtr ¶
func SaveBlogEditCtr ¶
func SaveEditCateCtr ¶
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
Click to show internal directories.
Click to hide internal directories.