controller

package
v0.0.0-...-5856374 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ban

func Ban(str string) bool

Types

type ContestController

type ContestController struct {
	class.Controller
	Type string
}

func (ContestController) Index

func (c ContestController) Index()

type FAQController

type FAQController struct {
	class.Controller
}

func (FAQController) Index

func (fc FAQController) Index()

faq 页面

type HomeController

type HomeController struct {
	class.Controller
}

func (HomeController) Index

func (hc HomeController) Index()

type NewsController

type NewsController struct {
	class.Controller
}

新闻控件

func (NewsController) Detail

func (nc NewsController) Detail(Nid string)

func (NewsController) List

func (nc NewsController) List()

列出所有新闻

type OSCController

type OSCController struct {
	class.Controller
}

func (OSCController) Index

func (oc OSCController) Index()

type ProblemController

type ProblemController struct {
	class.Controller
}

问题控件

func (*ProblemController) Detail

func (pc *ProblemController) Detail(Pid string)

列出某问题的详细信息,URL,/probliems/<pid>

func (*ProblemController) List

func (pc *ProblemController) List()

列出特定数量的问题,URL,/problems?pid=<pid>&titile=<titile>&source=<source>&page=<page>

func (*ProblemController) Submit

func (pc *ProblemController) Submit(Pid string)

提交某一问题的solution, URL /problems/<pid>,method POST

type RanklistController

type RanklistController struct {
	class.Controller
}

排名控件

func (*RanklistController) Index

func (rc *RanklistController) Index()

type SessController

type SessController struct {
	class.Controller
}

func (SessController) Delete

func (s SessController) Delete()

func (SessController) Get

func (s SessController) Get()

func (SessController) Post

func (s SessController) Post()

type StatusController

type StatusController struct {
	class.Controller
}

func (*StatusController) Code

func (sc *StatusController) Code()

func (StatusController) List

func (sc StatusController) List()

type UserController

type UserController struct {
	class.Controller
}

func (*UserController) Detail

func (uc *UserController) Detail(uid string)

func (*UserController) Edit

func (uc *UserController) Edit()

func (*UserController) Pagepassword

func (uc *UserController) Pagepassword()

func (*UserController) Password

func (uc *UserController) Password()

func (*UserController) Register

func (uc *UserController) Register()

func (*UserController) Settings

func (uc *UserController) Settings()

func (*UserController) Signup

func (uc *UserController) Signup()

func (*UserController) Update

func (uc *UserController) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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