Documentation ¶
Index ¶
- func RecursiveFun(parent_id 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 BookController
- func (c *BookController) Create()
- func (c *BookController) CreateToken()
- func (c *BookController) Dashboard()
- func (c *BookController) Delete()
- 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 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 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) CreateMember()
- func (c *ManagerController) CreateToken()
- func (c *ManagerController) DeleteBook()
- func (c *ManagerController) DeleteComment()
- func (c *ManagerController) EditBook()
- func (c *ManagerController) EditMember()
- func (c *ManagerController) Index()
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecursiveFun ¶ added in v0.5.1
func RecursiveFun(parent_id int, prefix, dpath string, c *DocumentController, book *models.BookResult, docs []*models.Document, paths *list.List)
递归生成文档序列数组.
Types ¶
type AccountController ¶
type AccountController struct {
BaseController
}
AccountController 用户登录与注册.
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 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 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()
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()
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) Books ¶
func (c *ManagerController) Books()
func (*ManagerController) Comments ¶
func (c *ManagerController) Comments()
func (*ManagerController) CreateToken ¶
func (c *ManagerController) CreateToken()
CreateToken 创建访问来令牌.
func (*ManagerController) DeleteComment ¶
func (c *ManagerController) DeleteComment()
DeleteComment 标记评论为已删除
func (*ManagerController) EditMember ¶ added in v0.5.1
func (c *ManagerController) EditMember()
func (*ManagerController) Index ¶
func (c *ManagerController) Index()
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
}
func (*SearchController) Index ¶
func (c *SearchController) Index()
type SettingController ¶
type SettingController struct {
BaseController
}
func (*SettingController) Index ¶
func (c *SettingController) Index()
func (*SettingController) Password ¶
func (c *SettingController) Password()
Click to show internal directories.
Click to hide internal directories.