controllers

package
v0.0.0-...-64798ab Latest Latest
Warning

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

Go to latest
Published: May 29, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT = iota
	SUCCESS
	FAILED
)
View Source
const (
	INDEX        = "admin/index.html"
	INFO         = "info"
	CURRENT_PAGE = 1
	PAGE_SIZE    = 12
	PAGE_COUNT   = 0
	UPLOAD_FILE  = "/file"
)

Variables

This section is empty.

Functions

func ToInt64

func ToInt64(value interface{}) (d int64, err error)

////util/////////////////

Types

type AdminController

type AdminController struct {
	SimpleController
}

func (*AdminController) Get

func (this *AdminController) Get()

func (*AdminController) Logout

func (this *AdminController) Logout()

type ContentsList

type ContentsList struct {
	SimpleController
}

func (*ContentsList) BBSAdd

func (this *ContentsList) BBSAdd()

添加帖子

func (*ContentsList) BBSList

func (this *ContentsList) BBSList()

帖子列表

func (*ContentsList) Get

func (this *ContentsList) Get()

帖子内容

func (*ContentsList) PostAdd

func (this *ContentsList) PostAdd()

func (*ContentsList) PublishList

func (this *ContentsList) PublishList()

发布的帖子

func (*ContentsList) ResponseList

func (this *ContentsList) ResponseList()

回复的帖子

type Info

type Info struct {
	// contains filtered or unexported fields
}

type KindsController

type KindsController struct {
	SimpleController
}

func (*KindsController) Get

func (this *KindsController) Get()

func (*KindsController) KindsAdd

func (this *KindsController) KindsAdd()

func (*KindsController) KindsDel

func (this *KindsController) KindsDel()

func (*KindsController) KindsList

func (this *KindsController) KindsList()

func (*KindsController) PostAdd

func (this *KindsController) PostAdd()

type MainController

type MainController struct {
	SimpleController
}

func (*MainController) Get

func (this *MainController) Get()

type ResController

type ResController struct {
	SimpleController
}

func (*ResController) PostAdd

func (this *ResController) PostAdd()

type SimpleController

type SimpleController struct {
	beego.Controller
}

func (*SimpleController) Prepare

func (this *SimpleController) Prepare()

type UserController

type UserController struct {
	SimpleController
}

func (*UserController) Get

func (this *UserController) Get()

func (*UserController) Login

func (this *UserController) Login()

user login

func (*UserController) PostAdd

func (this *UserController) PostAdd()

add user submit

func (*UserController) Register

func (this *UserController) Register()

func (*UserController) UserAdd

func (this *UserController) UserAdd()

add user menu

func (*UserController) UserDelete

func (this *UserController) UserDelete()

delete user from database

func (*UserController) UserList

func (this *UserController) UserList()

user list

func (*UserController) UserUpdate

func (this *UserController) UserUpdate()

update user

Jump to

Keyboard shortcuts

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