Documentation ¶
Index ¶
- Constants
- type AdminController
- type ApiController
- type ArticleController
- type BaseController
- func (this *BaseController) AssignIsAdmin()
- func (this *BaseController) GetIntWithDefault(paramKey string, defaultVal int) int
- func (this *BaseController) JsStorage(action, key string, values ...string)
- func (this *BaseController) Prepare()
- func (this *BaseController) SetPaginator(per int, nums int64) *paginator.Paginator
- type CatalogController
- type Checker
- type LoginController
- type MainController
- type MeController
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 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()
Click to show internal directories.
Click to hide internal directories.