admin

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandPassword

func RandPassword() string

RandPassword 生成随机8位密码

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

func (*AdminHome) Home

func (hc *AdminHome) Home()

@URL: /admin/ @method: GET

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

func (*AdminNews) Add

func (nc *AdminNews) Add()

@URL: /admin/news/new/ @method: GET

func (*AdminNews) Delete

func (nc *AdminNews) Delete(Nid string)

删除指定新闻 @URL: /admin/news/(\d+)/ @method: DELETE

func (*AdminNews) Edit

func (nc *AdminNews) Edit(Nid string)

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

func (*AdminNews) Insert

func (nc *AdminNews) Insert()

@URL: /admin/news/ @method:POST

func (*AdminNews) List

func (nc *AdminNews) List()

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

func (*AdminNews) Status

func (nc *AdminNews) Status(Nid string)

@URL: /admin/news/(\d+)/status/ @method: POST

func (*AdminNews) Update

func (nc *AdminNews) Update(Nid string)

@URL: /admin/news/(\d+)/ @method: POST

type AdminNotice

type AdminNotice struct {
	class.Controller

} //@Controller

func (*AdminNotice) Edit

func (n *AdminNotice) Edit()

@URL: /admin/notice/ @method: POST

func (*AdminNotice) Index

func (n *AdminNotice) Index()

@URL: /admin/notice/ @method: GET

type AdminProblem

type AdminProblem struct {
	class.Controller

} //@Controller

func (*AdminProblem) Add

func (pc *AdminProblem) Add()

@URL: /admin/problems/new/ @method: GET

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) Insert

func (pc *AdminProblem) Insert()

@URL: /admin/problems/ @method: POST

func (*AdminProblem) List

func (pc *AdminProblem) List()

@URL: /admin/problems/ @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) Index

func (pc *AdminRejudge) Index()

@URL: /admin/rejudger/ @method: GET

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) List

func (uc *AdminUser) List()

显示具有特殊权限的用户 @URL: /admin/users/ @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

Jump to

Keyboard shortcuts

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