submission

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 4 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

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