contest

package
v0.0.0-...-5979347 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contest

type Contest struct {
	Cid           int
	ContestDetail *model.Contest
	Index         map[int]int
	class.Controller

} //@Controller

func (*Contest) Detail

func (c *Contest) Detail(Cid string)

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

func (*Contest) GetCount

func (c *Contest) GetCount(qry map[string]string) (int, error)

func (*Contest) InitContest

func (c *Contest) InitContest(Cid string)

func (*Contest) Password

func (c *Contest) Password(Cid string)

@URL: /contests/(\d+)/password @method: POST

func (*Contest) PasswordPage

func (c *Contest) PasswordPage(Cid string)

@URL: /contests/(\d+)/password @method: GET

type ContestProblem

type ContestProblem struct {
	Contest

} //@Controller

func (*ContestProblem) Detail

func (pc *ContestProblem) Detail(Cid, Pid string)

@URL: /contests/(\d+)/problems/(\d+) @method:GET

func (*ContestProblem) Submit

func (pc *ContestProblem) Submit(Cid, Pid string)

@URL: /contests/(\d+)/problems/(\d+) @method: POST

type ContestRanklist

type ContestRanklist struct {
	Contest

} //@Controller

func (*ContestRanklist) Download

func (rc *ContestRanklist) Download(Cid string)

Download 下载contest排名csv文件 @URL: /contests/(\d+)/rankfile @method: GET

func (*ContestRanklist) Home

func (rc *ContestRanklist) Home(Cid string)

Home ranklist 列表主页 @URL: /contests/(\d+)/ranklist @method: GET

type ContestStatus

type ContestStatus struct {
	Contest

} //@Controller

func (*ContestStatus) Code

func (sc *ContestStatus) Code(Cid string, Sid string)

@URL: /contests/(\d+)/status/(\d+)/code @method:GET

func (*ContestStatus) List

func (sc *ContestStatus) List(Cid string)

@URL: /contests/(\d+)/status @method: GET

type UserSorter

type UserSorter []*userRank

func (UserSorter) Len

func (u UserSorter) Len() int

func (UserSorter) Less

func (u UserSorter) Less(i, j int) bool

func (UserSorter) Swap

func (u UserSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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