Documentation ¶
Index ¶
- func EachFun(prefix, dpath string, c *DocumentController, book *models.BookResult, ...)
- func RecursiveFun(parentId int, prefix, dpath string, c *DocumentController, ...)
- type AccountController
- type BaseController
- func (c *BaseController) BaseUrl() string
- func (c *BaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)
- func (c *BaseController) JsonResult(errCode int, errMsg string, data ...interface{})
- func (c *BaseController) Prepare()
- func (c *BaseController) SetMember(member models.Member)
- func (c *BaseController) ShowErrorPage(errCode int, errMsg string)
- type BlogController
- func (c *BlogController) Download()
- func (c *BlogController) Index()
- func (c *BlogController) List()
- func (c *BlogController) ManageDelete()
- func (c *BlogController) ManageEdit()
- func (c *BlogController) ManageList()
- func (c *BlogController) ManageSetting()
- func (c *BlogController) Prepare()
- func (c *BlogController) RemoveAttachment()
- func (c *BlogController) Upload()
- type BookController
- func (c *BookController) Copy()
- func (c *BookController) Create()
- func (c *BookController) CreateToken()
- func (c *BookController) Dashboard()
- func (c *BookController) Delete()
- func (c *BookController) Import()
- func (c *BookController) Index()
- func (c *BookController) IsPermission() (*models.BookResult, error)
- func (c *BookController) PrivatelyOwned()
- func (c *BookController) Release()
- func (c *BookController) SaveBook()
- func (c *BookController) SaveSort()
- func (c *BookController) Setting()
- func (c *BookController) Transfer()
- func (c *BookController) UploadCover()
- func (c *BookController) Users()
- type BookMemberController
- type CommentController
- type CookieRemember
- type DocumentController
- func (c *DocumentController) Compare()
- func (c *DocumentController) Content()
- func (c *DocumentController) Create()
- func (c *DocumentController) Delete()
- func (c *DocumentController) DeleteHistory()
- func (c *DocumentController) DownloadAttachment()
- func (c *DocumentController) Edit()
- func (c *DocumentController) Export()
- func (c *DocumentController) History()
- func (c *DocumentController) Index()
- func (c *DocumentController) QrCode()
- func (c *DocumentController) Read()
- func (c *DocumentController) RemoveAttachment()
- func (c *DocumentController) RestoreHistory()
- func (c *DocumentController) Search()
- func (c *DocumentController) Upload()
- type ErrorController
- type HomeController
- type LabelController
- type ManagerController
- func (c *ManagerController) AttachDelete()
- func (c *ManagerController) AttachDetailed()
- func (c *ManagerController) AttachList()
- func (c *ManagerController) Books()
- func (c *ManagerController) ChangeMemberRole()
- func (c *ManagerController) Comments()
- func (c *ManagerController) Config()
- func (c *ManagerController) CreateMember()
- func (c *ManagerController) CreateToken()
- func (c *ManagerController) DeleteBook()
- func (c *ManagerController) DeleteComment()
- func (c *ManagerController) DeleteMember()
- func (c *ManagerController) EditBook()
- func (c *ManagerController) EditMember()
- func (c *ManagerController) Index()
- func (c *ManagerController) LabelDelete()
- func (c *ManagerController) LabelList()
- func (c *ManagerController) Prepare()
- func (c *ManagerController) PrivatelyOwned()
- func (c *ManagerController) Setting()
- func (c *ManagerController) Transfer()
- func (c *ManagerController) UpdateMemberStatus()
- func (c *ManagerController) Users()
- type SearchController
- type SettingController
- type TemplateController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EachFun ¶ added in v0.7.1
func EachFun(prefix, dpath string, c *DocumentController, book *models.BookResult, item *models.Document, paths *list.List)
func RecursiveFun ¶ added in v0.5.1
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) LoggedIn ¶ added in v0.7.1
func (c *AccountController) LoggedIn(isPost bool) interface{}
登录成功后的操作,如重定向到原始请求页面
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) SetMember ¶
func (c *BaseController) SetMember(member models.Member)
SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session
func (*BaseController) ShowErrorPage ¶ added in v0.5.1
func (c *BaseController) ShowErrorPage(errCode int, errMsg string)
显示错误信息页面.
type BlogController ¶ added in v0.13.1
type BlogController struct {
BaseController
}
func (*BlogController) ManageSetting ¶ added in v0.13.1
func (c *BlogController) ManageSetting()
文章设置
func (*BlogController) Prepare ¶ added in v1.0.1
func (c *BlogController) Prepare()
func (*BlogController) RemoveAttachment ¶ added in v0.13.1
func (c *BlogController) RemoveAttachment()
删除附件
type BookController ¶
type BookController struct {
BaseController
}
func (*BookController) Index ¶
func (c *BookController) Index()
func (*BookController) IsPermission ¶
func (c *BookController) IsPermission() (*models.BookResult, error)
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)
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 ¶ added in v0.10.1
type DocumentController ¶
type DocumentController struct {
BaseController
}
DocumentController struct
func (*DocumentController) Compare ¶ added in v0.5.1
func (c *DocumentController) Compare()
func (*DocumentController) DeleteHistory ¶ added in v0.5.1
func (c *DocumentController) DeleteHistory()
func (*DocumentController) DownloadAttachment ¶
func (c *DocumentController) DownloadAttachment()
下载附件
func (*DocumentController) QrCode ¶ added in v0.5.1
func (c *DocumentController) QrCode()
生成项目访问的二维码
func (*DocumentController) RemoveAttachment ¶ added in v0.5.1
func (c *DocumentController) RemoveAttachment()
删除附件
func (*DocumentController) RestoreHistory ¶ added in v0.5.1
func (c *DocumentController) RestoreHistory()
通过文档历史恢复文档
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 ¶ added in v1.0.1
func (c *HomeController) Prepare()
type LabelController ¶ added in v0.7.1
type LabelController struct {
BaseController
}
func (*LabelController) List ¶ added in v0.7.1
func (c *LabelController) List()
func (*LabelController) Prepare ¶ added in v0.7.1
func (c *LabelController) Prepare()
type ManagerController ¶
type ManagerController struct {
BaseController
}
func (*ManagerController) AttachDelete ¶ added in v0.5.1
func (c *ManagerController) AttachDelete()
删除附件.
func (*ManagerController) AttachDetailed ¶ added in v0.5.1
func (c *ManagerController) AttachDetailed()
附件详情.
func (*ManagerController) AttachList ¶ added in v0.5.1
func (c *ManagerController) AttachList()
附件列表.
func (*ManagerController) Comments ¶
func (c *ManagerController) Comments()
func (*ManagerController) Config ¶ added in v1.0.1
func (c *ManagerController) Config()
func (*ManagerController) CreateToken ¶
func (c *ManagerController) CreateToken()
CreateToken 创建访问来令牌.
func (*ManagerController) DeleteComment ¶
func (c *ManagerController) DeleteComment()
DeleteComment 标记评论为已删除
func (*ManagerController) DeleteMember ¶ added in v0.7.1
func (c *ManagerController) DeleteMember()
删除一个用户,并将该用户的所有信息转移到超级管理员上.
func (*ManagerController) EditMember ¶ added in v0.5.1
func (c *ManagerController) EditMember()
编辑用户信息.
func (*ManagerController) Index ¶
func (c *ManagerController) Index()
func (*ManagerController) LabelDelete ¶ added in v0.10.1
func (c *ManagerController) LabelDelete()
删除标签
func (*ManagerController) Prepare ¶ added in v0.5.1
func (c *ManagerController) Prepare()
func (*ManagerController) PrivatelyOwned ¶ added in v0.5.1
func (c *ManagerController) PrivatelyOwned()
设置项目私有状态.
func (*ManagerController) Transfer ¶ added in v0.5.1
func (c *ManagerController) Transfer()
Transfer 转让项目.
func (*ManagerController) UpdateMemberStatus ¶
func (c *ManagerController) UpdateMemberStatus()
更新用户状态.
type SearchController ¶
type SearchController struct {
BaseController
}
type SettingController ¶
type SettingController struct {
BaseController
}
func (*SettingController) Index ¶
func (c *SettingController) Index()
func (*SettingController) Password ¶
func (c *SettingController) Password()
type TemplateController ¶ added in v0.13.1
type TemplateController struct { BaseController BookId int }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.