controller

package
v0.0.0-...-ff6f743 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 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

} //@Controller

func (*ContestController) Index

func (c *ContestController) Index()

@URL: /contests @method: GET

type FAQController

type FAQController struct {
	class.Controller

} //@Controller

func (*FAQController) Index

func (fc *FAQController) Index()

faq 页面 @URL: /faq @method: GET

type HomeController

type HomeController struct {
	class.Controller

} //@Controller

func (*HomeController) Index

func (hc *HomeController) Index()

@URL: / @method: GET

type NewsController

type NewsController struct {
	class.Controller

} //@Controller

func (*NewsController) Detail

func (nc *NewsController) Detail(Nid string)

@URL: /news/(\d+) @method: GET

func (*NewsController) List

func (nc *NewsController) List()

列出所有新闻 @URL: /news @method: GET

type OSCController

type OSCController struct {
	class.Controller

} //@Controller

func (*OSCController) Index

func (oc *OSCController) Index()

@URL: /osc @method: GET

type ProblemController

type ProblemController struct {
	class.Controller

} //@Controller

问题控件

func (*ProblemController) Detail

func (pc *ProblemController) Detail(Pid string)

列出某问题的详细信息 @URL: /problems/(\d+) @method: GET

func (*ProblemController) List

func (pc *ProblemController) List()

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

func (*ProblemController) Submit

func (pc *ProblemController) Submit(Pid string)

提交某一问题的solution @URL: /problems/(\d+) @method: POST

type RanklistController

type RanklistController struct {
	class.Controller

} //@Controller

排名控件

func (*RanklistController) Index

func (rc *RanklistController) Index()

@URL: /ranklist @method: GET

type SessController

type SessController struct {
	class.Controller

} //@Controller

func (*SessController) Delete

func (s *SessController) Delete()

@URL: /sess @method: Delete

func (*SessController) Get

func (s *SessController) Get()

@URL: /sess @method: GET

func (*SessController) Post

func (s *SessController) Post()

@URL: /sess @method: POST

type StatusController

type StatusController struct {
	class.Controller

} //@Controller

func (*StatusController) Code

func (sc *StatusController) Code()

@URL: /status/code @method: GET

func (*StatusController) List

func (sc *StatusController) List()

@URL: /status @method: GET

type UserController

type UserController struct {
	class.Controller

} //@Controller

func (*UserController) Detail

func (uc *UserController) Detail(uid string)

@URL: /users/(.+) @method: GET

func (*UserController) Edit

func (uc *UserController) Edit()

@URL: /profile @method: GET

func (*UserController) Pagepassword

func (uc *UserController) Pagepassword()

@URL: /account @method: GET

func (*UserController) Password

func (uc *UserController) Password()

@URL: /account @method: POST

func (*UserController) Register

func (uc *UserController) Register()

@URL: /users @method:POST

func (*UserController) Settings

func (uc *UserController) Settings()

@URL: /settings @method: GET

func (*UserController) Signup

func (uc *UserController) Signup()

@URL: /users/new @method: GET

func (*UserController) Update

func (uc *UserController) Update()

@URL: /profile @method: POST

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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