contest

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContest

func CreateContest(svc *svc.Context) gin.HandlerFunc

func DeleteContest

func DeleteContest(svc *svc.Context) gin.HandlerFunc

func GetContest

func GetContest(svc *svc.Context) gin.HandlerFunc

func GetContests

func GetContests(svc *svc.Context) gin.HandlerFunc

Types

type CreateContestRequest

type CreateContestRequest = core.AddContestRequest

type DeleteContestRequest

type DeleteContestRequest struct {
	Id uint `uri:"contest_id"`
}

type GetContestRequest

type GetContestRequest struct {
	ContestID uint `uri:"contest_id"`
}

type GetContestsResponse

type GetContestsResponse struct {
	Size     int64           `json:"Size"`
	Count    int64           `json:"Count"`
	Contests []model.Contest `json:"Contests"`
}

Jump to

Keyboard shortcuts

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