Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouter ¶
func RegisterRouter(g *gin.RouterGroup)
Types ¶
type Handler ¶
type Handler struct { }
func (*Handler) List ¶
func (*Handler) List() gin.HandlerFunc
type RSubmission ¶
type RSubmission struct { ID uint `json:"id"` Flag string `json:"flag"` Result uint `json:"result"` ProblemID uint `json:"problem_id"` UserID uint `json:"user_id"` }
func BindList ¶
func BindList(submissions []cpt.Submission) []*RSubmission
func BindSubmission ¶
func BindSubmission(submission *cpt.Submission) *RSubmission
type RespList ¶
type RespList struct { Response Submissions []*RSubmission `json:"submissions"` }
Click to show internal directories.
Click to hide internal directories.