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) GetPaginationParam() (limit, offset 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
- type RSSController
Constants ¶
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) GetPaginationParam ¶
func (this *BaseController) GetPaginationParam() (limit, offset 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) DoElasticQuery ¶
func (this *MainController) DoElasticQuery()
func (*MainController) DoQuery ¶
func (this *MainController) DoQuery()
func (*MainController) ElasticQuery ¶
func (this *MainController) ElasticQuery()
func (*MainController) Get ¶
func (this *MainController) Get()
func (*MainController) ListByCatalog ¶
func (this *MainController) ListByCatalog()
func (*MainController) Query ¶
func (this *MainController) Query()
func (*MainController) Read ¶
func (this *MainController) Read()
type MeController ¶
type MeController struct {
AdminController
}
func (*MeController) Default ¶
func (this *MeController) Default()
func (*MeController) ShutDown ¶
func (this *MeController) ShutDown()
type RSSController ¶
type RSSController struct {
AdminController
}
func (*RSSController) DoDel ¶
func (this *RSSController) DoDel()
func (*RSSController) DoEdit ¶
func (this *RSSController) DoEdit()
func (*RSSController) LoadPage ¶
func (this *RSSController) LoadPage()
func (*RSSController) RSSData ¶
func (this *RSSController) RSSData()
func (*RSSController) Read ¶
func (this *RSSController) Read()
Click to show internal directories.
Click to hide internal directories.