admin

package
v0.0.0-...-4a8c6e9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogAccess

func LogAccess(c echo.Context) error

func LoginGet

func LoginGet(c echo.Context) error

func LoginPost

func LoginPost(c echo.Context) error

func ManageComment

func ManageComment(c echo.Context) error

func ManageMedia

func ManageMedia(c echo.Context) error

func ManagePage

func ManagePage(c echo.Context) error

func ManagePost

func ManagePost(c echo.Context) error

func Setting

func Setting(c echo.Context) error

func Test

func Test(c echo.Context) error

func UploadImage

func UploadImage(c echo.Context) error

UploadImage 处理上传图片的请求

func UploadTest

func UploadTest(c echo.Context) error

func WritePage

func WritePage(c echo.Context) error

func WritePost

func WritePost(c echo.Context) error

Types

type Param

type Param struct {
	CommStatus string `query:"commstatus" default:"approved" `
	Status     string `query:"status" default:"publish" `
	Page       int    `query:"page" default:"1"`
	Cid        int    `query:"cid" default:"1"`
}

Param 类名首字母一定要大写,又被坑一次

type UploadParam

type UploadParam struct {
	Cid uint16 `query:"cid" form:"cid" json:"cid"`
}

Jump to

Keyboard shortcuts

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