Versions in this module Expand all Collapse all v0 v0.0.2 Nov 22, 2019 Changes in this version + func LoadProblem() gin.HandlerFunc + func RegisterRouter(g *gin.RouterGroup) + type Handler struct + func (*Handler) Create() gin.HandlerFunc + func (*Handler) List() gin.HandlerFunc + func (*Handler) Modify() gin.HandlerFunc + func (*Handler) Show() gin.HandlerFunc + func (*Handler) SingleDelete() gin.HandlerFunc + func (*Handler) SubmissionCreate() gin.HandlerFunc + func (*Handler) TagAdd() gin.HandlerFunc + func (*Handler) TagDelete() gin.HandlerFunc + type RProblem struct + Alias string + ContestID uint + Description string + IsHidden bool + Name string + Points uint + Tags []string + Type string + func BindList(db *gorm.DB, session *cpt.Session, isContestAdmin bool, problems []cpt.Problem) []*RProblem + type ReqCreate struct + Alias string + Description string + Name string + Points uint + Type string + type ReqModify struct + Description *string + IsHidden *bool + Name *string + Points *uint + Type *string + func (r *ReqModify) Bind(p *cpt.Problem) + type ReqSubmissionCreate struct + Flag string + type RespCreate struct + ProblemAlias string + type RespList struct + Problems []*RProblem + type RespShow struct + Problem *RProblem + type RespSubmissionCreate struct + Result uint v0.0.1 Nov 22, 2019