controllers

package
v0.0.0-...-62ebb0b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 36 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EachFun

func EachFun(prefix, dpath string, c *DocumentController, book *models.BookResult, item *models.Document, paths *list.List)

func RecursiveFun

func RecursiveFun(parentId int, prefix, dpath string, c *DocumentController, book *models.BookResult, docs []*models.Document, paths *list.List)

递归生成文档序列数组

Types

type AccountController

type AccountController struct {
	BaseController
}

AccountController 用户登录与注册

func (*AccountController) Captcha

func (c *AccountController) Captcha()

验证码

func (*AccountController) FindPassword

func (c *AccountController) FindPassword()

找回密码

func (*AccountController) LoggedIn

func (c *AccountController) LoggedIn(isPost bool) interface{}

登录成功后的操作,如重定向到原始请求页面

func (*AccountController) Login

func (c *AccountController) Login()

Login 用户登录

func (*AccountController) Logout

func (c *AccountController) Logout()

Logout 退出登录

func (*AccountController) Register

func (c *AccountController) Register()

用户注册

func (*AccountController) ValidEmail

func (c *AccountController) ValidEmail()

校验邮件并修改密码

type BaseController

type BaseController struct {
	beego.Controller
	Member                *models.Member
	Option                map[string]string
	EnableAnonymous       bool
	EnableDocumentHistory bool
}

func (*BaseController) BaseUrl

func (c *BaseController) BaseUrl() string

func (*BaseController) ExecuteViewPathTemplate

func (c *BaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)

ExecuteViewPathTemplate 执行指定的模板并返回执行结果.

func (*BaseController) JsonResult

func (c *BaseController) JsonResult(errCode int, errMsg string, data ...interface{})

JsonResult 响应 json 结果

func (*BaseController) Prepare

func (c *BaseController) Prepare()

Prepare 预处理.

func (*BaseController) SetMember

func (c *BaseController) SetMember(member models.Member)

SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session

func (*BaseController) ShowErrorPage

func (c *BaseController) ShowErrorPage(errCode int, errMsg string)

显示错误信息页面.

type BlogController

type BlogController struct {
	BaseController
}

func (*BlogController) Download

func (c *BlogController) Download()

下载附件

func (*BlogController) Index

func (c *BlogController) Index()

文章阅读

func (*BlogController) List

func (c *BlogController) List()

文章列表

func (*BlogController) ManageDelete

func (c *BlogController) ManageDelete()

删除文章

func (*BlogController) ManageEdit

func (c *BlogController) ManageEdit()

文章创建或编辑

func (*BlogController) ManageList

func (c *BlogController) ManageList()

管理后台文章列表

func (*BlogController) ManageSetting

func (c *BlogController) ManageSetting()

文章设置

func (*BlogController) Prepare

func (c *BlogController) Prepare()

func (*BlogController) RemoveAttachment

func (c *BlogController) RemoveAttachment()

删除附件

func (*BlogController) Upload

func (c *BlogController) Upload()

上传附件或图片

type BookController

type BookController struct {
	BaseController
}

func (*BookController) Copy

func (c *BookController) Copy()

复制项目

func (*BookController) Create

func (c *BookController) Create()

Create 创建项目.

func (*BookController) CreateToken

func (c *BookController) CreateToken()

CreateToken 创建访问来令牌.

func (*BookController) Dashboard

func (c *BookController) Dashboard()

Dashboard 项目概要 .

func (*BookController) Delete

func (c *BookController) Delete()

Delete 删除项目.

func (*BookController) Import

func (c *BookController) Import()

导入zip压缩包

func (*BookController) Index

func (c *BookController) Index()

func (*BookController) IsPermission

func (c *BookController) IsPermission() (*models.BookResult, error)

func (*BookController) PrivatelyOwned

func (c *BookController) PrivatelyOwned()

设置项目私有状态.

func (*BookController) Release

func (c *BookController) Release()

发布项目.

func (*BookController) SaveBook

func (c *BookController) SaveBook()

保存项目信息

func (*BookController) SaveSort

func (c *BookController) SaveSort()

文档排序.

func (*BookController) Setting

func (c *BookController) Setting()

Setting 项目设置 .

func (*BookController) Transfer

func (c *BookController) Transfer()

Transfer 转让项目.

func (*BookController) UploadCover

func (c *BookController) UploadCover()

上传项目封面.

func (*BookController) Users

func (c *BookController) Users()

Users 用户列表.

type BookMemberController

type BookMemberController struct {
	BaseController
}

func (*BookMemberController) AddMember

func (c *BookMemberController) AddMember()

AddMember 参加参与用户.

func (*BookMemberController) ChangeRole

func (c *BookMemberController) ChangeRole()

变更指定用户在指定项目中的权限

func (*BookMemberController) IsPermission

func (c *BookMemberController) IsPermission() (*models.BookResult, error)

func (*BookMemberController) RemoveMember

func (c *BookMemberController) RemoveMember()

删除参与者.

type CommentController

type CommentController struct {
	BaseController
}

func (*CommentController) Create

func (c *CommentController) Create()

func (*CommentController) Index

func (c *CommentController) Index()

func (*CommentController) Lists

func (c *CommentController) Lists()

type CookieRemember

type CookieRemember struct {
	MemberId int
	Account  string
	Time     time.Time
}

type DocumentController

type DocumentController struct {
	BaseController
}

DocumentController struct

func (*DocumentController) Compare

func (c *DocumentController) Compare()

func (*DocumentController) Content

func (c *DocumentController) Content()

获取文档内容

func (*DocumentController) Create

func (c *DocumentController) Create()

创建一个文档

func (*DocumentController) Delete

func (c *DocumentController) Delete()

删除文档

func (*DocumentController) DeleteHistory

func (c *DocumentController) DeleteHistory()

func (*DocumentController) DownloadAttachment

func (c *DocumentController) DownloadAttachment()

下载附件

func (*DocumentController) Edit

func (c *DocumentController) Edit()

编辑文档

func (*DocumentController) Export

func (c *DocumentController) Export()

导出

func (*DocumentController) History

func (c *DocumentController) History()

文档历史列表

func (*DocumentController) Index

func (c *DocumentController) Index()

文档首页

func (*DocumentController) QrCode

func (c *DocumentController) QrCode()

生成项目访问的二维码

func (*DocumentController) Read

func (c *DocumentController) Read()

阅读文档

func (*DocumentController) RemoveAttachment

func (c *DocumentController) RemoveAttachment()

删除附件

func (*DocumentController) RestoreHistory

func (c *DocumentController) RestoreHistory()

通过文档历史恢复文档

func (*DocumentController) Search

func (c *DocumentController) Search()

项目内搜索

func (*DocumentController) Upload

func (c *DocumentController) Upload()

上传附件或图片

type ErrorController

type ErrorController struct {
	BaseController
}

func (*ErrorController) Error403

func (c *ErrorController) Error403()

func (*ErrorController) Error404

func (c *ErrorController) Error404()

func (*ErrorController) Error500

func (c *ErrorController) Error500()

type HomeController

type HomeController struct {
	BaseController
}

func (*HomeController) Index

func (c *HomeController) Index()

func (*HomeController) Prepare

func (c *HomeController) Prepare()

type LabelController

type LabelController struct {
	BaseController
}

func (*LabelController) Index

func (c *LabelController) Index()

查看包含标签的文档列表.

func (*LabelController) List

func (c *LabelController) List()

func (*LabelController) Prepare

func (c *LabelController) Prepare()

type ManagerController

type ManagerController struct {
	BaseController
}

func (*ManagerController) AttachDelete

func (c *ManagerController) AttachDelete()

删除附件.

func (*ManagerController) AttachDetailed

func (c *ManagerController) AttachDetailed()

附件详情.

func (*ManagerController) AttachList

func (c *ManagerController) AttachList()

附件列表.

func (*ManagerController) Books

func (c *ManagerController) Books()

项目列表.

func (*ManagerController) ChangeMemberRole

func (c *ManagerController) ChangeMemberRole()

变更用户权限.

func (*ManagerController) Comments

func (c *ManagerController) Comments()

func (*ManagerController) Config

func (c *ManagerController) Config()

func (*ManagerController) CreateMember

func (c *ManagerController) CreateMember()

添加用户.

func (*ManagerController) CreateToken

func (c *ManagerController) CreateToken()

CreateToken 创建访问来令牌.

func (*ManagerController) DeleteBook

func (c *ManagerController) DeleteBook()

删除项目.

func (*ManagerController) DeleteComment

func (c *ManagerController) DeleteComment()

DeleteComment 标记评论为已删除

func (*ManagerController) DeleteMember

func (c *ManagerController) DeleteMember()

删除一个用户,并将该用户的所有信息转移到超级管理员上.

func (*ManagerController) EditBook

func (c *ManagerController) EditBook()

编辑项目.

func (*ManagerController) EditMember

func (c *ManagerController) EditMember()

编辑用户信息.

func (*ManagerController) Index

func (c *ManagerController) Index()

func (*ManagerController) LabelDelete

func (c *ManagerController) LabelDelete()

删除标签

func (*ManagerController) LabelList

func (c *ManagerController) LabelList()

标签列表

func (*ManagerController) Prepare

func (c *ManagerController) Prepare()

func (*ManagerController) PrivatelyOwned

func (c *ManagerController) PrivatelyOwned()

设置项目私有状态.

func (*ManagerController) Setting

func (c *ManagerController) Setting()

项目设置.

func (*ManagerController) Transfer

func (c *ManagerController) Transfer()

Transfer 转让项目.

func (*ManagerController) UpdateMemberStatus

func (c *ManagerController) UpdateMemberStatus()

更新用户状态.

func (*ManagerController) Users

func (c *ManagerController) Users()

用户列表.

type SearchController

type SearchController struct {
	BaseController
}

func (*SearchController) Index

func (c *SearchController) Index()

搜索首页

func (*SearchController) User

func (c *SearchController) User()

搜索用户

type SettingController

type SettingController struct {
	BaseController
}

func (*SettingController) Index

func (c *SettingController) Index()

func (*SettingController) Password

func (c *SettingController) Password()

func (*SettingController) Upload

func (c *SettingController) Upload()

Upload 上传图片

type TemplateController

type TemplateController struct {
	BaseController
	BookId int
}

func (*TemplateController) Add

func (c *TemplateController) Add()

添加模板

func (*TemplateController) Delete

func (c *TemplateController) Delete()

删除模板

func (*TemplateController) Get

func (c *TemplateController) Get()

获取指定模板信息

func (*TemplateController) List

func (c *TemplateController) List()

获取模板列表

Jump to

Keyboard shortcuts

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