controllers

package
v0.0.0-...-0a041b1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CATALOG_IMG_DIR = "static/uploads/catalogs"
)
View Source
const (
	EDITOR_IMG_DIR = "static/uploads/editor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct {
	BaseController
}

func (*AdminController) CheckLogin

func (this *AdminController) CheckLogin()

type ApiController

type ApiController struct {
	BaseController
}

func (*ApiController) Health

func (this *ApiController) Health()

func (*ApiController) Markdown

func (this *ApiController) Markdown()

func (*ApiController) Md5

func (this *ApiController) Md5()

func (*ApiController) Upload

func (this *ApiController) Upload()

type ArticleController

type ArticleController struct {
	AdminController
}

func (*ArticleController) Add

func (this *ArticleController) Add()

func (*ArticleController) Del

func (this *ArticleController) Del()

func (*ArticleController) DoAdd

func (this *ArticleController) DoAdd()

func (*ArticleController) DoEdit

func (this *ArticleController) DoEdit()

func (*ArticleController) Draft

func (this *ArticleController) Draft()

func (*ArticleController) Edit

func (this *ArticleController) Edit()

type BaseController

type BaseController struct {
	beego.Controller
	IsAdmin bool
}

func (*BaseController) AssignIsAdmin

func (this *BaseController) AssignIsAdmin()

func (*BaseController) GetIntWithDefault

func (this *BaseController) GetIntWithDefault(paramKey string, defaultVal int) int

func (*BaseController) JsStorage

func (this *BaseController) JsStorage(action, key string, values ...string)

func (*BaseController) Prepare

func (this *BaseController) Prepare()

func (*BaseController) SetPaginator

func (this *BaseController) SetPaginator(per int, nums int64) *paginator.Paginator

type CatalogController

type CatalogController struct {
	AdminController
}

func (*CatalogController) Add

func (this *CatalogController) Add()

func (*CatalogController) Del

func (this *CatalogController) Del()

func (*CatalogController) DoAdd

func (this *CatalogController) DoAdd()

func (*CatalogController) DoEdit

func (this *CatalogController) DoEdit()

func (*CatalogController) Edit

func (this *CatalogController) Edit()

type Checker

type Checker interface {
	CheckLogin()
}

type LoginController

type LoginController struct {
	BaseController
}

func (*LoginController) DoLogin

func (this *LoginController) DoLogin()

func (*LoginController) Login

func (this *LoginController) Login()

func (*LoginController) Logout

func (this *LoginController) Logout()

type MainController

type MainController struct {
	BaseController
}

func (*MainController) Get

func (this *MainController) Get()

func (*MainController) ListByCatalog

func (this *MainController) ListByCatalog()

func (*MainController) Read

func (this *MainController) Read()

type MeController

type MeController struct {
	AdminController
}

func (*MeController) Default

func (this *MeController) Default()

Jump to

Keyboard shortcuts

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