controllers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2017 License: MIT Imports: 22 Imported by: 40

Documentation

Index

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

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

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

func (c *DocumentController) Content()

获取文档内容.

func (*DocumentController) Create

func (c *DocumentController) Create()

创建一个文档.

func (*DocumentController) Delete

func (c *DocumentController) Delete()

删除文档.

func (*DocumentController) DownloadAttachment

func (c *DocumentController) DownloadAttachment()

DownloadAttachment 下载附件.

func (*DocumentController) Edit

func (c *DocumentController) Edit()

编辑文档.

func (*DocumentController) Index

func (c *DocumentController) Index()

文档首页.

func (*DocumentController) Read

func (c *DocumentController) Read()

阅读文档.

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

func (c *ManagerController) Index()

func (*ManagerController) Setting

func (c *ManagerController) Setting()

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