Documentation ¶
Index ¶
- type AdController
- type BannerController
- type BaseController
- func (this *BaseController) CheckLogin() int
- func (this *BaseController) Del()
- func (this *BaseController) Error404()
- func (this *BaseController) Error501()
- func (this *BaseController) ErrorDb()
- func (this *BaseController) ErrorDiy(status, redirect, msg interface{}, timewait int)
- func (this *BaseController) Prepare()
- func (this *BaseController) Response(data map[string]interface{})
- func (this *BaseController) ResponseJson(isSuccess bool, msg string, data ...interface{})
- func (this *BaseController) Update()
- type DocController
- func (this *DocController) Action()
- func (this *DocController) AddCate()
- func (this *DocController) AddChanel()
- func (this *DocController) Category()
- func (this *DocController) DelCate()
- func (this *DocController) Get()
- func (this *DocController) GetCateByCid()
- func (this *DocController) List()
- func (this *DocController) Prepare()
- func (this *DocController) Recycle()
- func (this *DocController) RemarkTpl()
- type FriendController
- type IndexController
- type KindEditorController
- type LoginController
- type ReportController
- type ScoreController
- type SeoController
- type SingleController
- type SysController
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdController ¶
type AdController struct {
BaseController
}
func (*AdController) Get ¶
func (this *AdController) Get()
type BannerController ¶
type BannerController struct {
BaseController
}
type BaseController ¶
type BaseController struct { beego.Controller TplTheme string //模板主题 TplStatic string //模板静态文件 AdminId int //管理员是否已登录,如果已登录,则管理员ID大于0 Sys models.Sys }
func (*BaseController) CheckLogin ¶
func (this *BaseController) CheckLogin() int
是否已经登录,如果已登录,则返回用户的id
func (*BaseController) ErrorDiy ¶
func (this *BaseController) ErrorDiy(status, redirect, msg interface{}, timewait int)
自定义的文档错误
func (*BaseController) Response ¶
func (this *BaseController) Response(data map[string]interface{})
响应json
func (*BaseController) ResponseJson ¶
func (this *BaseController) ResponseJson(isSuccess bool, msg string, data ...interface{})
响应json
type DocController ¶
type DocController struct {
BaseController
}
func (*DocController) Action ¶
func (this *DocController) Action()
对文档进行操作,type类型的值包括remove(移入回收站),del(删除文档记录),clear(清空通用户的内容),deepdel(深度删除,在删除文档记录的同时删除文档文件),forbidden(禁止文档,把文档md5标记为禁止上传,只要文档的md5是这个,则该文档禁止被上传)
func (*DocController) Prepare ¶
func (this *DocController) Prepare()
type FriendController ¶
type FriendController struct {
BaseController
}
type IndexController ¶
type IndexController struct {
BaseController
}
func (*IndexController) Get ¶
func (this *IndexController) Get()
type KindEditorController ¶
type KindEditorController struct {
BaseController
}
type LoginController ¶
type LoginController struct {
BaseController
}
type ReportController ¶
type ReportController struct {
BaseController
}
type ScoreController ¶
type ScoreController struct {
BaseController
}
type SeoController ¶
type SeoController struct {
BaseController
}
func (*SeoController) Get ¶
func (this *SeoController) Get()
func (*SeoController) UpdateSitemap ¶
func (this *SeoController) UpdateSitemap()
type SingleController ¶
type SingleController struct {
BaseController
}
type SysController ¶
type SysController struct {
BaseController
}
func (*SysController) SetCloudStore ¶
func (this *SysController) SetCloudStore()
func (*SysController) TestForSendingEmail ¶
func (this *SysController) TestForSendingEmail()
测试邮箱是否能发件成功
type UserController ¶
type UserController struct {
BaseController
}
func (*UserController) Prepare ¶
func (this *UserController) Prepare()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.