controllers

package
v0.0.0-...-1abd83c Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSON_CODE_NO_LOGIN = -1
)

Variables

View Source
var (
	NumPerPage int = 20
)

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	BaseController
}

用户账户相关的控制器

func (*Accounts) Create

func (this *Accounts) Create()

func (*Accounts) Edit

func (this *Accounts) Edit()

func (*Accounts) Login

func (this *Accounts) Login()

func (*Accounts) LoginCreate

func (this *Accounts) LoginCreate()

func (*Accounts) Logout

func (this *Accounts) Logout()

func (*Accounts) NestPrepare

func (this *Accounts) NestPrepare()

func (*Accounts) New

func (this *Accounts) New()

func (*Accounts) Password

func (this *Accounts) Password()

func (*Accounts) Update

func (this *Accounts) Update()

func (*Accounts) UpdatePassword

func (this *Accounts) UpdatePassword()

type AppResult

type AppResult struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type BaseController

type BaseController struct {
	beego.Controller
	// contains filtered or unexported fields
}

func (*BaseController) Captcha

func (this *BaseController) Captcha()

func (*BaseController) CurrentUser

func (this *BaseController) CurrentUser() models.User

func (*BaseController) Finish

func (this *BaseController) Finish()

func (*BaseController) FlashWrite

func (this *BaseController) FlashWrite(msg string)

func (*BaseController) Prepare

func (this *BaseController) Prepare()

func (*BaseController) Redirect

func (this *BaseController) Redirect(url string)

type Home

type Home struct {
	BaseController
}

func (*Home) About

func (this *Home) About()

func (*Home) Index

func (this *Home) Index()

func (*Home) Message

func (this *Home) Message()

func (*Home) Search

func (this *Home) Search()

type NestPreparer

type NestPreparer interface {
	NestPrepare()
}

type Nodes

type Nodes struct {
	BaseController
}

func (*Nodes) Create

func (this *Nodes) Create()

func (*Nodes) Delete

func (this *Nodes) Delete()

func (*Nodes) Edit

func (this *Nodes) Edit()

func (*Nodes) Index

func (this *Nodes) Index()

func (*Nodes) NestPrepare

func (this *Nodes) NestPrepare()

func (*Nodes) Update

func (this *Nodes) Update()

type Notifications

type Notifications struct {
	BaseController
}

func (*Notifications) Clear

func (this *Notifications) Clear()

func (*Notifications) Index

func (this *Notifications) Index()

type Replies

type Replies struct {
	BaseController
	// contains filtered or unexported fields
}

func (*Replies) Create

func (this *Replies) Create()

func (*Replies) Delete

func (this *Replies) Delete()

func (*Replies) Edit

func (this *Replies) Edit()

修改评论

func (*Replies) Update

func (this *Replies) Update()

type Settings

type Settings struct {
	BaseController
}

func (*Settings) Edit

func (this *Settings) Edit()

func (*Settings) Index

func (this *Settings) Index()

func (*Settings) NestPrepare

func (this *Settings) NestPrepare()

func (*Settings) Update

func (this *Settings) Update()

type Topics

type Topics struct {
	BaseController
}

func (*Topics) Create

func (this *Topics) Create()

func (*Topics) Delete

func (this *Topics) Delete()

func (*Topics) Edit

func (this *Topics) Edit()

func (*Topics) Feed

func (this *Topics) Feed()

func (*Topics) Index

func (this *Topics) Index()

func (*Topics) NestPrepare

func (this *Topics) NestPrepare()

func (*Topics) New

func (this *Topics) New()

func (*Topics) Popular

func (this *Topics) Popular()

func (*Topics) Rank

func (this *Topics) Rank()

加精或者埋贴

func (*Topics) Recent

func (this *Topics) Recent()

func (*Topics) Show

func (this *Topics) Show()

func (*Topics) Star

func (this *Topics) Star()

func (*Topics) TopicNode

func (this *Topics) TopicNode()

func (*Topics) UnStar

func (this *Topics) UnStar()

func (*Topics) UnWatch

func (this *Topics) UnWatch()

func (*Topics) Update

func (this *Topics) Update()

func (*Topics) Watch

func (this *Topics) Watch()

type Users

type Users struct {
	BaseController
	// contains filtered or unexported fields
}

func (*Users) NestPrepare

func (this *Users) NestPrepare()

func (*Users) Show

func (this *Users) Show()

func (*Users) Topics

func (this *Users) Topics(login string)

Jump to

Keyboard shortcuts

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