controllers

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: Apache-2.0, Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

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 用户登录与注册.

func (*AccountController) Captcha

func (c *AccountController) Captcha()

验证码.

func (*AccountController) FindPassword

func (c *AccountController) FindPassword()

找回密码.

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 added in v0.5.1

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

显示错误信息页面.

type BookController

type BookController struct {
	BaseController
}

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) 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 DocumentController

type DocumentController struct {
	BaseController
}

DocumentController struct.

func (*DocumentController) Compare added in v0.5.1

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 added in v0.5.1

func (c *DocumentController) DeleteHistory()

func (*DocumentController) DownloadAttachment

func (c *DocumentController) DownloadAttachment()

DownloadAttachment 下载附件.

func (*DocumentController) Edit

func (c *DocumentController) Edit()

编辑文档.

func (*DocumentController) Export added in v0.5.1

func (c *DocumentController) Export()

导出文件

func (*DocumentController) History added in v0.5.1

func (c *DocumentController) History()

文档历史列表.

func (*DocumentController) Index

func (c *DocumentController) Index()

文档首页.

func (*DocumentController) QrCode added in v0.5.1

func (c *DocumentController) QrCode()

生成项目访问的二维码.

func (*DocumentController) Read

func (c *DocumentController) Read()

阅读文档.

func (*DocumentController) RemoveAttachment added in v0.5.1

func (c *DocumentController) RemoveAttachment()

删除附件.

func (*DocumentController) RestoreHistory added in v0.5.1

func (c *DocumentController) RestoreHistory()

func (*DocumentController) Search added in v0.5.1

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()

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) ChangeMemberRole

func (c *ManagerController) ChangeMemberRole()

变更用户权限.

func (*ManagerController) Comments

func (c *ManagerController) Comments()

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) EditBook

func (c *ManagerController) EditBook()

编辑项目

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) Setting

func (c *ManagerController) Setting()

项目设置.

func (*ManagerController) Transfer added in v0.5.1

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()

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 上传图片

Jump to

Keyboard shortcuts

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