api

package
v0.0.0-...-c89a2db Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignUpPath  = "/signup"
	ProfilePath = "/profile"
)

login and auth

Variables

This section is empty.

Functions

func AddCatalog

func AddCatalog(c *gin.Context)

func AddContest

func AddContest(c *gin.Context)

func AddGroup

func AddGroup(c *gin.Context)

func AddProblem

func AddProblem(c *gin.Context)

func Comment4Problem

func Comment4Problem(c *gin.Context)

func DeleteCatalog

func DeleteCatalog(c *gin.Context)

func GetAllCatalogs

func GetAllCatalogs(c *gin.Context)

func GetAllContests

func GetAllContests(c *gin.Context)

func GetAllGroups

func GetAllGroups(c *gin.Context)

func GetAllMaintainers

func GetAllMaintainers(c *gin.Context)

func GetAllProblems

func GetAllProblems(c *gin.Context)

func GetAllSubmit

func GetAllSubmit(c *gin.Context)

func GetAllTags

func GetAllTags(c *gin.Context)

func GetAllTemplates

func GetAllTemplates(c *gin.Context)

func GetAllUsers

func GetAllUsers(c *gin.Context)

func GetCatalog

func GetCatalog(c *gin.Context)

func GetContest

func GetContest(c *gin.Context)

func GetContestInviteInfo

func GetContestInviteInfo(c *gin.Context)

func GetGroup

func GetGroup(c *gin.Context)

func GetGroupInviteInfo

func GetGroupInviteInfo(c *gin.Context)

func GetLastSubmit

func GetLastSubmit(c *gin.Context)

func GetOtherUserInfo

func GetOtherUserInfo(c *gin.Context)

func GetProblem

func GetProblem(c *gin.Context)

func GetResult

func GetResult(c *gin.Context)

func GetSubmit

func GetSubmit(c *gin.Context)

func GetUserInfo

func GetUserInfo(c *gin.Context)

func Invite2Contest

func Invite2Contest(c *gin.Context)

func Invite2Group

func Invite2Group(c *gin.Context)

func JoinContest

func JoinContest(c *gin.Context)

func JoinContestQuery

func JoinContestQuery(c *gin.Context)

func JoinGroup

func JoinGroup(c *gin.Context)

func JoinGroupQuery

func JoinGroupQuery(c *gin.Context)

func SaveTheme

func SaveTheme(c *gin.Context)

func Setup

func Setup(r *gin.Engine)

func SetupCatalog

func SetupCatalog(r *gin.Engine)

func SetupContest

func SetupContest(r *gin.Engine)

func SetupGroup

func SetupGroup(r *gin.Engine)

func SetupProblem

func SetupProblem(r *gin.Engine)

func SetupTag

func SetupTag(r *gin.Engine)

func SetupTemplate

func SetupTemplate(r *gin.Engine)

func SetupTheme

func SetupTheme(r *gin.Engine)

func SetupUser

func SetupUser(r *gin.Engine)

func Submit

func Submit(c *gin.Context)

func UpdateCatalog

func UpdateCatalog(c *gin.Context)

func UpdateContest

func UpdateContest(c *gin.Context)

func UpdateGroup

func UpdateGroup(c *gin.Context)

func UpdateMaintainer

func UpdateMaintainer(c *gin.Context)

func UpdateProblem

func UpdateProblem(c *gin.Context)

func UserInfoEdit

func UserInfoEdit(c *gin.Context)

func VoteProblem

func VoteProblem(c *gin.Context)

Types

type PageArg

type PageArg struct {
	Page     int    `json:"page" form:"page" binding:"required,min=1"`
	PageSize int    `json:"page_size" form:"page_size" binding:"required,min=1"`
	Order    string `json:"order" form:"order"`
	Of       string `json:"of" form:"of" binding:"omitempty,oneof=group tag contest"`
	ID       int    `json:"id" form:"id" binding:"requiredwhenfield=Of"`
}

type QueryArg

type QueryArg struct {
	ID int `json:"id" uri:"id" form:"id" binding:"required"`
}

type QueryExtraArg

type QueryExtraArg struct {
	ForUpdate bool `json:"for_update" form:"for_update"`
}

type SubmitGetArg

type SubmitGetArg struct {
	Page              int    `json:"page" form:"page" binding:"required,min=1"`
	PageSize          int    `json:"page_size" form:"page_size" binding:"required,min=1"`
	Order             string `json:"order" form:"order"`
	Of                string `json:"of" form:"of" binding:"omitempty,oneof=group contest problem me user"`
	ID                int    `json:"id" form:"id" binding:"requiredwhenfield=Of"`
	OnlyDuringContest bool   `json:"only_during_contest"`
}

Jump to

Keyboard shortcuts

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