Documentation ¶
Index ¶
- Constants
- func AddCatalog(c *gin.Context)
- func AddContest(c *gin.Context)
- func AddGroup(c *gin.Context)
- func AddProblem(c *gin.Context)
- func Comment4Problem(c *gin.Context)
- func DeleteCatalog(c *gin.Context)
- func GetAllCatalogs(c *gin.Context)
- func GetAllContests(c *gin.Context)
- func GetAllGroups(c *gin.Context)
- func GetAllMaintainers(c *gin.Context)
- func GetAllProblems(c *gin.Context)
- func GetAllSubmit(c *gin.Context)
- func GetAllTags(c *gin.Context)
- func GetAllTemplates(c *gin.Context)
- func GetAllUsers(c *gin.Context)
- func GetCatalog(c *gin.Context)
- func GetContest(c *gin.Context)
- func GetContestInviteInfo(c *gin.Context)
- func GetGroup(c *gin.Context)
- func GetGroupInviteInfo(c *gin.Context)
- func GetLastSubmit(c *gin.Context)
- func GetOtherUserInfo(c *gin.Context)
- func GetProblem(c *gin.Context)
- func GetResult(c *gin.Context)
- func GetSubmit(c *gin.Context)
- func GetUserInfo(c *gin.Context)
- func Invite2Contest(c *gin.Context)
- func Invite2Group(c *gin.Context)
- func JoinContest(c *gin.Context)
- func JoinContestQuery(c *gin.Context)
- func JoinGroup(c *gin.Context)
- func JoinGroupQuery(c *gin.Context)
- func SaveTheme(c *gin.Context)
- func Setup(r *gin.Engine)
- func SetupCatalog(r *gin.Engine)
- func SetupContest(r *gin.Engine)
- func SetupGroup(r *gin.Engine)
- func SetupProblem(r *gin.Engine)
- func SetupTag(r *gin.Engine)
- func SetupTemplate(r *gin.Engine)
- func SetupTheme(r *gin.Engine)
- func SetupUser(r *gin.Engine)
- func Submit(c *gin.Context)
- func UpdateCatalog(c *gin.Context)
- func UpdateContest(c *gin.Context)
- func UpdateGroup(c *gin.Context)
- func UpdateMaintainer(c *gin.Context)
- func UpdateProblem(c *gin.Context)
- func UserInfoEdit(c *gin.Context)
- func VoteProblem(c *gin.Context)
- type PageArg
- type QueryArg
- type QueryExtraArg
- type SubmitGetArg
Constants ¶
View Source
const ( SignUpPath = "/signup" ProfilePath = "/profile" )
login and auth
Variables ¶
This section is empty.
Functions ¶
func AddCatalog ¶
func AddContest ¶
func AddProblem ¶
func Comment4Problem ¶
func DeleteCatalog ¶
func GetAllCatalogs ¶
func GetAllContests ¶
func GetAllGroups ¶
func GetAllMaintainers ¶
func GetAllProblems ¶
func GetAllSubmit ¶
func GetAllTags ¶
func GetAllTemplates ¶
func GetAllUsers ¶
func GetCatalog ¶
func GetContest ¶
func GetContestInviteInfo ¶
func GetGroupInviteInfo ¶
func GetLastSubmit ¶
func GetOtherUserInfo ¶
func GetProblem ¶
func GetUserInfo ¶
func Invite2Contest ¶
func Invite2Group ¶
func JoinContest ¶
func JoinContestQuery ¶
func JoinGroupQuery ¶
func SetupCatalog ¶
func SetupContest ¶
func SetupGroup ¶
func SetupProblem ¶
func SetupTemplate ¶
func SetupTheme ¶
func UpdateCatalog ¶
func UpdateContest ¶
func UpdateGroup ¶
func UpdateMaintainer ¶
func UpdateProblem ¶
func UserInfoEdit ¶
func VoteProblem ¶
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 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"` }
Click to show internal directories.
Click to hide internal directories.