Back to godoc.org

Package backend

v0.0.0-...-8580c6f
Latest Go to latest

The latest major version is .

Published: May 27, 2020 | License: GPL3 | Module: gitea.com/iwhot/blog

Index

func RegistersRoutes

func RegistersRoutes(g *echo.Group)

注册路由

type Admin

type Admin struct {
	Base
}

后台首页控制器

func (*Admin) Add

func (c *Admin) Add(ctx echo.Context) error

添加用户

func (*Admin) AddPost

func (c *Admin) AddPost(ctx echo.Context) error

添加用户提交

func (*Admin) Delete

func (c *Admin) Delete(ctx echo.Context) error

删除用户

func (*Admin) Edit

func (c *Admin) Edit(ctx echo.Context) error

修改用户

func (*Admin) EditPost

func (c *Admin) EditPost(ctx echo.Context) error

修改用户提交

func (*Admin) Index

func (c *Admin) Index(ctx echo.Context) error

用户首页

func (*Admin) RegistRoute

func (c *Admin) RegistRoute(g *echo.Group)

注册路由

type Article

type Article struct {
	Base
}

文章

func (*Article) Add

func (c *Article) Add(ctx echo.Context) error

添加文章

func (*Article) AddPost

func (c *Article) AddPost(ctx echo.Context) error

添加文章提交

func (*Article) Delete

func (c *Article) Delete(ctx echo.Context) error

删除文章

func (*Article) Edit

func (c *Article) Edit(ctx echo.Context) error

编辑文章

func (*Article) EditPost

func (c *Article) EditPost(ctx echo.Context) error

编辑文章提交

func (*Article) Index

func (c *Article) Index(ctx echo.Context) error

文章列表

func (*Article) RegistRoute

func (c *Article) RegistRoute(g *echo.Group)

注册路由

type Base

type Base struct {
	Msg  string
	Url  string
	Code int
	http2.Common
}

后台总控制器

func (*Base) Jump

func (c *Base) Jump(ctx echo.Context) error

type Cate

type Cate struct {
	Base
}

分类

func (*Cate) Add

func (c *Cate) Add(ctx echo.Context) error

添加分类

func (*Cate) AddPost

func (c *Cate) AddPost(ctx echo.Context) error

添加分类提交

func (*Cate) Delete

func (c *Cate) Delete(ctx echo.Context) error

删除分类

func (*Cate) Edit

func (c *Cate) Edit(ctx echo.Context) error

编辑分类

func (*Cate) EditPost

func (c *Cate) EditPost(ctx echo.Context) error

编辑分类提交

func (*Cate) Index

func (c *Cate) Index(ctx echo.Context) error

分类列表

func (*Cate) RegistRoute

func (c *Cate) RegistRoute(g *echo.Group)

注册路由

type Index

type Index struct {
	Base
}

后台首页控制器

func (*Index) Index

func (c *Index) Index(ctx echo.Context) error

后台首页

func (*Index) NotFound

func (c *Index) NotFound(ctx echo.Context) error

404页面

func (*Index) RegistRoute

func (c *Index) RegistRoute(g *echo.Group)

注册路由

func (*Index) Welcome

func (c *Index) Welcome(ctx echo.Context) error

后台欢迎页面 todo 获取硬件信息 github.com/shirou/gopsutil todo 可以用websocket做成监控

type Upload

type Upload struct {
	Base
}

后台首页控制器

func (*Upload) EditorUpload

func (c *Upload) EditorUpload(ctx echo.Context) error

king editor文件上传处理

func (*Upload) FileManager

func (c *Upload) FileManager(ctx echo.Context) error

文件管理

func (*Upload) RegistRoute

func (c *Upload) RegistRoute(g *echo.Group)

注册路由

func (*Upload) UploadOne

func (c *Upload) UploadOne(ctx echo.Context) error

上传一个文件

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier