Documentation ¶
Index ¶
- 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)
- 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) Content()
- func (c *DocumentController) Create()
- func (c *DocumentController) Delete()
- func (c *DocumentController) DownloadAttachment()
- func (c *DocumentController) Edit()
- func (c *DocumentController) Index()
- func (c *DocumentController) Read()
- func (c *DocumentController) Upload()
- type ErrorController
- type HomeController
- type ManagerController
- 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) Index()
- func (c *ManagerController) Setting()
- func (c *ManagerController) UpdateMemberStatus()
- func (c *ManagerController) Users()
- type SearchController
- type SettingController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct {
BaseController
}
AccountController 用户登录与注册.
type BaseController ¶
type BaseController struct { beego.Controller Member *models.Member Option map[string]string EnableAnonymous 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
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) PrivatelyOwned ¶
func (c *BookController) PrivatelyOwned()
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) DownloadAttachment ¶
func (c *DocumentController) DownloadAttachment()
DownloadAttachment 下载附件.
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) Books ¶
func (c *ManagerController) Books()
func (*ManagerController) ChangeMemberRole ¶
func (c *ManagerController) ChangeMemberRole()
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) Index ¶
func (c *ManagerController) Index()
func (*ManagerController) Setting ¶
func (c *ManagerController) Setting()
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.