controllers

package
v0.0.0-...-0cc6dc7 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2014 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryController

type CategoryController struct {
	beego.Controller
}

func (*CategoryController) AddCategory

func (this *CategoryController) AddCategory()

添加文章分类

func (*CategoryController) DeleteCategory

func (this *CategoryController) DeleteCategory()

删除文章分类

func (*CategoryController) GetAllCategory

func (this *CategoryController) GetAllCategory()

查询所有的分类信息

func (*CategoryController) ModifyCategory

func (this *CategoryController) ModifyCategory()

修改文章分类

type HomeController

type HomeController struct {
	beego.Controller
}

func (*HomeController) Get

func (this *HomeController) Get()

首页

func (*HomeController) SetPaginator

func (this *HomeController) SetPaginator(per int, nums int64) *utils.Paginator

分页设置

type TopicController

type TopicController struct {
	beego.Controller
}

func (*TopicController) Add

func (this *TopicController) Add()

跳转到新增页面

func (*TopicController) AddTopic

func (this *TopicController) AddTopic()

添加文章内容

func (*TopicController) DeleteTopic

func (this *TopicController) DeleteTopic()

根据文章id删除文章

func (*TopicController) ModifyTopic

func (this *TopicController) ModifyTopic()

修改文章页面

func (*TopicController) ModifyTopicAction

func (this *TopicController) ModifyTopicAction()

修改文章Action

func (*TopicController) ViewTopic

func (this *TopicController) ViewTopic()

根据文章id查看文章

func (*TopicController) ViewTopicByCategoryName

func (this *TopicController) ViewTopicByCategoryName()

根据分类名称查询文章

type UserController

type UserController struct {
	beego.Controller
}

func (*UserController) DeleteUser

func (this *UserController) DeleteUser()

删除用户

func (*UserController) GetPwd

func (this *UserController) GetPwd()

密码找回页

func (*UserController) GetPwdAction

func (this *UserController) GetPwdAction()

密码找回Action

func (*UserController) GetUserInfo

func (this *UserController) GetUserInfo()

根据用户名查看用户详细信息

func (*UserController) Login

func (this *UserController) Login()

登录页

func (*UserController) LoginAction

func (this *UserController) LoginAction()

用户登录表单提交

func (*UserController) Logout

func (this *UserController) Logout()

登出

func (*UserController) ModifyPWD

func (this *UserController) ModifyPWD()

密码找回修改密码页

func (*UserController) ModifyPWDAction

func (this *UserController) ModifyPWDAction()

密码找回修改密码Action

func (*UserController) NewCaptcha

func (this *UserController) NewCaptcha()

生成验证码

func (*UserController) Register

func (this *UserController) Register()

用户注册页

func (*UserController) RegisterAction

func (this *UserController) RegisterAction()

用户注册表单提交

Jump to

Keyboard shortcuts

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