Documentation ¶
Index ¶
- type AccountController
- func (c *AccountController) Captcha()
- func (c *AccountController) FindPassword()
- func (c *AccountController) LoggedIn(isPost bool) interface{}
- func (c *AccountController) Login()
- func (c *AccountController) Logout()
- func (c *AccountController) Prepare()
- func (c *AccountController) Register()
- func (c *AccountController) ValidEmail()
- type BaseController
- func (c *BaseController) BaseUrl() string
- func (c *BaseController) CheckErrorResult(code int, err error)
- func (c *BaseController) CheckJsonError(code int, err error)
- 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) Dashboard()
- func (c *BookController) Delete()
- func (c *BookController) Import()
- func (c *BookController) Index()
- func (c *BookController) IsPermission() (*models.BookResult, error)
- func (c *BookController) ItemsetsSearch()
- func (c *BookController) PrivatelyOwned()
- func (c *BookController) Release()
- func (c *BookController) SaveBook()
- func (c *BookController) SaveSort()
- func (c *BookController) Setting()
- func (c *BookController) Team()
- func (c *BookController) TeamAdd()
- func (c *BookController) TeamDelete()
- func (c *BookController) TeamSearch()
- 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 HotfixController
- type ItemsetsController
- 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) Itemsets()
- func (c *ManagerController) ItemsetsDelete()
- func (c *ManagerController) ItemsetsEdit()
- func (c *ManagerController) LabelDelete()
- func (c *ManagerController) LabelList()
- func (c *ManagerController) Prepare()
- func (c *ManagerController) PrivatelyOwned()
- func (c *ManagerController) Setting()
- func (c *ManagerController) Team()
- func (c *ManagerController) TeamBookAdd()
- func (c *ManagerController) TeamBookDelete()
- func (c *ManagerController) TeamBookList()
- func (c *ManagerController) TeamChangeMemberRole()
- func (c *ManagerController) TeamCreate()
- func (c *ManagerController) TeamDelete()
- func (c *ManagerController) TeamEdit()
- func (c *ManagerController) TeamMemberAdd()
- func (c *ManagerController) TeamMemberDelete()
- func (c *ManagerController) TeamMemberList()
- func (c *ManagerController) TeamSearchBook()
- func (c *ManagerController) TeamSearchMember()
- func (c *ManagerController) Transfer()
- func (c *ManagerController) UpdateMemberStatus()
- func (c *ManagerController) Users()
- type SearchController
- type SettingController
- type TemplateController
- type VersionController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct {
BaseController
}
AccountController 用户登录与注册
func (*AccountController) LoggedIn ¶
func (c *AccountController) LoggedIn(isPost bool) interface{}
登录成功后的操作,如重定向到原始请求页面
func (*AccountController) Prepare ¶
func (c *AccountController) Prepare()
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) CheckErrorResult ¶
func (c *BaseController) CheckErrorResult(code int, err error)
func (*BaseController) CheckJsonError ¶
func (c *BaseController) CheckJsonError(code int, err error)
如果错误不为空,则响应错误信息到浏览器.
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 ¶
func (c *BaseController) ShowErrorPage(errCode int, errMsg string)
显示错误信息页面.
type BlogController ¶
type BlogController struct {
BaseController
}
func (*BlogController) Prepare ¶
func (c *BlogController) Prepare()
type BookController ¶
type BookController struct {
BaseController
}
func (*BookController) Index ¶
func (c *BookController) Index()
func (*BookController) IsPermission ¶
func (c *BookController) IsPermission() (*models.BookResult, error)
func (*BookController) Team ¶
func (c *BookController) Team()
func (*BookController) TeamAdd ¶
func (c *BookController) TeamAdd()
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 ¶
func (c *DocumentController) Compare()
func (*DocumentController) DeleteHistory ¶
func (c *DocumentController) DeleteHistory()
func (*DocumentController) DownloadAttachment ¶
func (c *DocumentController) DownloadAttachment()
下载附件
func (*DocumentController) RestoreHistory ¶
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 ¶
func (c *HomeController) Prepare()
type HotfixController ¶
type HotfixController struct {
BaseController
}
func (*HotfixController) Index ¶
func (c *HotfixController) Index()
type ItemsetsController ¶
type ItemsetsController struct {
BaseController
}
func (*ItemsetsController) Index ¶
func (c *ItemsetsController) Index()
func (*ItemsetsController) List ¶
func (c *ItemsetsController) List()
func (*ItemsetsController) Prepare ¶
func (c *ItemsetsController) Prepare()
type LabelController ¶
type LabelController struct {
BaseController
}
func (*LabelController) List ¶
func (c *LabelController) List()
func (*LabelController) Prepare ¶
func (c *LabelController) Prepare()
type ManagerController ¶
type ManagerController struct {
BaseController
}
func (*ManagerController) Comments ¶
func (c *ManagerController) Comments()
func (*ManagerController) Config ¶
func (c *ManagerController) Config()
func (*ManagerController) CreateToken ¶
func (c *ManagerController) CreateToken()
CreateToken 创建访问来令牌.
func (*ManagerController) DeleteComment ¶
func (c *ManagerController) DeleteComment()
DeleteComment 标记评论为已删除
func (*ManagerController) DeleteMember ¶
func (c *ManagerController) DeleteMember()
删除一个用户,并将该用户的所有信息转移到超级管理员上.
func (*ManagerController) Index ¶
func (c *ManagerController) Index()
func (*ManagerController) Prepare ¶
func (c *ManagerController) Prepare()
func (*ManagerController) Team ¶
func (c *ManagerController) Team()
func (*ManagerController) TeamChangeMemberRole ¶
func (c *ManagerController) TeamChangeMemberRole()
func (*ManagerController) TeamCreate ¶
func (c *ManagerController) TeamCreate()
func (*ManagerController) TeamDelete ¶
func (c *ManagerController) TeamDelete()
func (*ManagerController) TeamEdit ¶
func (c *ManagerController) TeamEdit()
func (*ManagerController) TeamMemberAdd ¶
func (c *ManagerController) TeamMemberAdd()
func (*ManagerController) TeamMemberDelete ¶
func (c *ManagerController) TeamMemberDelete()
func (*ManagerController) TeamMemberList ¶
func (c *ManagerController) TeamMemberList()
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 ¶
type TemplateController struct { BaseController BookId int }
type VersionController ¶
type VersionController struct {
BaseController
}
func (*VersionController) Index ¶
func (c *VersionController) Index()
Source Files ¶
- AccountController.go
- BaseController.go
- BlogController.go
- BookController.go
- BookMemberController.go
- DocumentController.go
- ErrorController.go
- HomeController.go
- HotfixController.go
- ItemsetsController.go
- LabelController.go
- ManagerController.go
- SearchController.go
- SettingController.go
- TemplateController.go
- VersionController.go
- comment.go
Click to show internal directories.
Click to hide internal directories.