Documentation ¶
Index ¶
- func RandPassword() string
- type AdminContest
- type AdminHome
- type AdminImage
- type AdminNews
- type AdminNotice
- type AdminProblem
- func (pc *AdminProblem) Add()
- func (pc *AdminProblem) Delete(Pid string)
- func (pc *AdminProblem) Edit(Pid string)
- func (pc *AdminProblem) Import()
- func (pc *AdminProblem) ImportPage()
- func (pc *AdminProblem) Insert()
- func (pc *AdminProblem) List()
- func (pc *AdminProblem) Status(Pid string)
- func (pc *AdminProblem) Update(Pid string)
- type AdminRejudge
- type AdminTestdata
- type AdminUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdminContest ¶
type AdminContest struct { Cid int ContestDetail *model.Contest Index map[int]int class.Controller } //@Controller
竞赛控件
func (*AdminContest) Add ¶
func (cc *AdminContest) Add()
添加比赛页面 @URL: /admin/contests/new @method: GET
func (*AdminContest) Delete ¶
func (cc *AdminContest) Delete(Cid string)
删除竞赛 @URL: /admin/contests/(\d+)/delete/ @method:POST
func (*AdminContest) Edit ¶
func (cc *AdminContest) Edit(Cid string)
竞赛编辑页面, @URL:/admin/contests/(\d+)/ @method:GET
func (*AdminContest) Insert ¶
func (cc *AdminContest) Insert()
插入比赛 @URL:/admin/contests/ @method:POST
func (*AdminContest) List ¶
func (cc *AdminContest) List()
列出所有的比赛 @URL: /admin/contests/ @method:GET
func (*AdminContest) Status ¶
func (cc *AdminContest) Status(Cid string)
更改contest状态 @URL:/admin/contests/(\d+)/status/ @method:POST
func (*AdminContest) Update ¶
func (cc *AdminContest) Update(Cid string)
更新竞赛 @URL:/admin/contests/(\d+)/ @method:POST
type AdminHome ¶
type AdminHome struct { class.Controller } //@Controller
type AdminImage ¶
type AdminImage struct { class.Controller } //@Controller
ImageController handles sth. with images
func (AdminImage) Post ¶
func (ic AdminImage) Post()
Upload support kindeditor upload images,the W must return json eg. like {"err":0,"url":"http:...."} @URL:/admin/images/ @method: POST
type AdminNews ¶
type AdminNews struct { class.Controller } //@Controller
type AdminNotice ¶
type AdminNotice struct { class.Controller } //@Controller
type AdminProblem ¶
type AdminProblem struct { class.Controller } //@Controller
func (*AdminProblem) Delete ¶
func (pc *AdminProblem) Delete(Pid string)
@URL: /admin/problems/(\d+)/ @method: DELETE
func (*AdminProblem) Edit ¶
func (pc *AdminProblem) Edit(Pid string)
@URL: /admin/problems/(\d+)/ @method: GET
func (*AdminProblem) Import ¶
func (pc *AdminProblem) Import()
@URL: /admin/problems/importor/ @method: POST
func (*AdminProblem) ImportPage ¶
func (pc *AdminProblem) ImportPage()
@URL: /admin/problems/importor/ @method: GET
func (*AdminProblem) Status ¶
func (pc *AdminProblem) Status(Pid string)
@URL: /admin/problems/(\d+)/status/ @method: POST
func (*AdminProblem) Update ¶
func (pc *AdminProblem) Update(Pid string)
@URL: /admin/problems/(\d+)/ @method: POST
type AdminRejudge ¶
type AdminRejudge struct { class.Controller } //@Controller
func (*AdminRejudge) Rejudge ¶
func (pc *AdminRejudge) Rejudge()
@URL: /admin/rejudger/ @method: POST
type AdminTestdata ¶
type AdminTestdata struct { class.Controller } //@Controller
func (*AdminTestdata) Delete ¶
func (tc *AdminTestdata) Delete(pid string)
Delete 删除指定testdata @URL: /admin/testdata/(\d+) @method: DELETE
func (*AdminTestdata) Download ¶
func (tc *AdminTestdata) Download(pid string)
Download 下载测试数据 @URL: /admin/testdata/(\d+)/file @method: GET
func (*AdminTestdata) List ¶
func (tc *AdminTestdata) List(pid string)
List 列出对应题目的test data @URL: /admin/testdata/(\d+) @method: GET
func (*AdminTestdata) Upload ¶
func (tc *AdminTestdata) Upload(pid string)
上传测试数据 @URL: /admin/testdata/(\d+) @method: POST
type AdminUser ¶
type AdminUser struct { class.Controller } //@Controller
func (*AdminUser) Generate ¶
func (uc *AdminUser) Generate()
@URL: /admin/users/generation @method: POST
func (*AdminUser) GeneratePage ¶
func (uc *AdminUser) GeneratePage()
Generate 生成指定数量的用户账号 @URL: /admin/users/generation @method: GET
func (*AdminUser) Pagepassword ¶
func (uc *AdminUser) Pagepassword()
密码设置页面 @URL: /admin/users/pagepassword @method: GET
func (*AdminUser) Password ¶
func (uc *AdminUser) Password()
设置用户密码 @URL: /admin/users/password @method: PUT
func (*AdminUser) Privilegeset ¶
func (uc *AdminUser) Privilegeset()
设置用户权限 @URL: /admin/privilegeset @method: POST