api

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContestInfo

func GetContestInfo(c *gin.Context)

func GetProblemInfo

func GetProblemInfo(c *gin.Context)

func GetResultInfo

func GetResultInfo(c *gin.Context)

func GetResultInfoAll

func GetResultInfoAll(c *gin.Context)

func Login

func Login(c *gin.Context)

func RegisterResult

func RegisterResult(c *gin.Context)

func SendProblem

func SendProblem(c *gin.Context)

func StructToMap

func StructToMap(data interface{}) map[string]interface{}

Types

type ReceiveLoginFormat

type ReceiveLoginFormat struct {
	Student_id string `json:"student_id"`
	Password   string `json:"password"`
}

type ReceiveRegisterFormat

type ReceiveRegisterFormat struct {
	Student_id string `json:"studentId"`
	ProblemNum int    `json:"problemNum"`
	Result     int    `json:"resultStatusCode"`
}

Jump to

Keyboard shortcuts

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