AdminControllers

package
v0.0.0-...-01033d1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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
}

func (*BannerController) Add

func (this *BannerController) Add()

新增横幅

func (*BannerController) Del

func (this *BannerController) Del()

删除横幅

func (*BannerController) Get

func (this *BannerController) Get()

横幅列表

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) Del

func (this *BaseController) Del()

删除内容

func (*BaseController) Error404

func (this *BaseController) Error404()

404

func (*BaseController) Error501

func (this *BaseController) Error501()

501

func (*BaseController) ErrorDb

func (this *BaseController) ErrorDb()

数据库错误

func (*BaseController) ErrorDiy

func (this *BaseController) ErrorDiy(status, redirect, msg interface{}, timewait int)

自定义的文档错误

func (*BaseController) Prepare

func (this *BaseController) Prepare()

初始化函数

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

func (*BaseController) Update

func (this *BaseController) Update()

更新内容

type DocController

type DocController struct {
	BaseController
}

func (*DocController) Action

func (this *DocController) Action()

对文档进行操作,type类型的值包括remove(移入回收站),del(删除文档记录),clear(清空通用户的内容),deepdel(深度删除,在删除文档记录的同时删除文档文件),forbidden(禁止文档,把文档md5标记为禁止上传,只要文档的md5是这个,则该文档禁止被上传)

func (*DocController) AddCate

func (this *DocController) AddCate()

新增文档分类

func (*DocController) AddChanel

func (this *DocController) AddChanel()

新增文库频道

func (*DocController) Category

func (this *DocController) Category()

文档分类管理

func (*DocController) DelCate

func (this *DocController) DelCate()

删除分类

func (*DocController) Get

func (this *DocController) Get()

文库频道管理

func (*DocController) GetCateByCid

func (this *DocController) GetCateByCid()

根据频道获取下一级分类

func (*DocController) List

func (this *DocController) List()

文档列表管理

func (*DocController) Prepare

func (this *DocController) Prepare()

func (*DocController) Recycle

func (this *DocController) Recycle()

文档回收站

func (*DocController) RemarkTpl

func (this *DocController) RemarkTpl()

获取文档备注模板

type FriendController

type FriendController struct {
	BaseController
}

func (*FriendController) Get

func (this *FriendController) Get()

添加以及查看友链列表

type IndexController

type IndexController struct {
	BaseController
}

func (*IndexController) Get

func (this *IndexController) Get()

type KindEditorController

type KindEditorController struct {
	BaseController
}

func (*KindEditorController) Upload

func (this *KindEditorController) Upload()

上传。这里是后台使用的,不限文件类型

type LoginController

type LoginController struct {
	BaseController
}

func (*LoginController) Login

func (this *LoginController) Login()

登录后台

func (*LoginController) Logout

func (this *LoginController) Logout()

退出登录

func (*LoginController) Prepare

func (this *LoginController) Prepare()

重置prepare方法,移除模板继承

func (*LoginController) UpdateAdmin

func (this *LoginController) UpdateAdmin()

更新管理员信息

func (*LoginController) UpdatePwd

func (this *LoginController) UpdatePwd()

更新登录密码

func (*LoginController) Xsrf

func (this *LoginController) Xsrf()

防止跨站攻击,在有表单的控制器中调用

type ReportController

type ReportController struct {
	BaseController
}

func (*ReportController) Get

func (this *ReportController) Get()

查看举报处理情况

type ScoreController

type ScoreController struct {
	BaseController
}

func (*ScoreController) Get

func (this *ScoreController) Get()

积分管理

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
}

func (*SingleController) Del

func (this *SingleController) Del()

删除单页

func (*SingleController) Edit

func (this *SingleController) Edit()

单页编辑,只编辑文本内容

func (*SingleController) Get

func (this *SingleController) Get()

单页列表

type SysController

type SysController struct {
	BaseController
}

func (*SysController) CloudStore

func (this *SysController) CloudStore()

云存储配置

func (*SysController) Get

func (this *SysController) Get()

系统配置管理

func (*SysController) HandleLogs

func (this *SysController) HandleLogs()

下载或者删除日志文件

func (*SysController) RebuildAllIndex

func (this *SysController) RebuildAllIndex()

重建全量索引

func (*SysController) SetCloudStore

func (this *SysController) SetCloudStore()

func (*SysController) TestForSendingEmail

func (this *SysController) TestForSendingEmail()

测试邮箱是否能发件成功

type UserController

type UserController struct {
	BaseController
}

func (*UserController) List

func (this *UserController) List()

用户列表

func (*UserController) Prepare

func (this *UserController) Prepare()

Jump to

Keyboard shortcuts

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