Documentation
¶
Index ¶
- func LoadProblem() gin.HandlerFunc
- func RegisterRouter(g *gin.RouterGroup)
- type Handler
- 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
- type ReqCreate
- type ReqModify
- type ReqSubmissionCreate
- type RespCreate
- type RespList
- type RespShow
- type RespSubmissionCreate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadProblem ¶
func LoadProblem() gin.HandlerFunc
func RegisterRouter ¶
func RegisterRouter(g *gin.RouterGroup)
Types ¶
type Handler ¶
type Handler struct { }
func (*Handler) Create ¶
func (*Handler) Create() gin.HandlerFunc
func (*Handler) List ¶
func (*Handler) List() gin.HandlerFunc
func (*Handler) Modify ¶
func (*Handler) Modify() gin.HandlerFunc
func (*Handler) Show ¶
func (*Handler) Show() gin.HandlerFunc
func (*Handler) SingleDelete ¶
func (*Handler) SingleDelete() gin.HandlerFunc
func (*Handler) SubmissionCreate ¶
func (*Handler) SubmissionCreate() gin.HandlerFunc
func (*Handler) TagAdd ¶
func (*Handler) TagAdd() gin.HandlerFunc
func (*Handler) TagDelete ¶
func (*Handler) TagDelete() gin.HandlerFunc
type RProblem ¶
type ReqCreate ¶
type ReqCreate struct { Name string `json:"name" validate:"max=50,min=1,required" binding:"max=50,min=1,required"` Description string `json:"description"` Alias string `json:"alias" validate:"max=50,min=1,alphanum,required" binding:"max=50,min=1,alphanum,required"` Points uint `json:"points"` Type string `json:"type"` }
type ReqModify ¶
type ReqSubmissionCreate ¶
type ReqSubmissionCreate struct {
Flag string `json:"flag" validate:"required" binding:"required"`
}
type RespCreate ¶
type RespCreate struct { Response ProblemAlias string `json:"problem_alias,omitempty"` }
type RespSubmissionCreate ¶
type RespSubmissionCreate struct { Response Result uint `json:"result,omitempty"` }
Click to show internal directories.
Click to hide internal directories.