chore: add tag on router

This commit is contained in:
Paul Pan 2023-12-18 21:21:15 +08:00
parent 988206ee5d
commit 596a7219cf
Signed by: Paul
GPG Key ID: D639BDF5BA578AF4
14 changed files with 14 additions and 0 deletions

View File

@ -15,6 +15,7 @@ type createVersionRequest struct {
// CreateVersion
// @Summary create a problem version
// @Description create a problem version
// @Tags problem
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param pid formData int true "problem id"

View File

@ -13,6 +13,7 @@ type detailsRequest struct {
// Details
// @Summary get details of a problem
// @Description get details of a problem
// @Tags problem
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param pid formData int true "problem id"

View File

@ -12,6 +12,7 @@ type searchRequest struct {
// Search
// @Summary get detail of a problem
// @Description get detail of a problem
// @Tags problem
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param search formData string false "word search"

View File

@ -17,6 +17,7 @@ type updateRequest struct {
// Update
// @Summary create or update a problem
// @Description create or update a problem
// @Tags problem
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param pid formData int false "problem id, 0 for create"

View File

@ -11,6 +11,7 @@ import (
// Upload
// @Summary get upload url
// @Description get upload url
// @Tags problem
// @Produce json
// @Response 200 {object} e.Response "upload url and key"
// @Security Authentication

View File

@ -12,6 +12,7 @@ type queryRequest struct {
// Query
// @Summary query submissions by via submission id
// @Description query submissions by via submission id
// @Tags status
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param sid formData uint true "submission id"

View File

@ -15,6 +15,7 @@ type queryByVersionRequest struct {
// QueryByProblemVersion
// @Summary query submissions by problem version (admin only)
// @Description query submissions by problem version (admin only)
// @Tags status
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param pvid formData uint true "problem version id"

View File

@ -16,6 +16,7 @@ type createRequest struct {
// Create
// @Summary create a submission
// @Description create a submission
// @Tags submission
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param pid formData int true "problem id"

View File

@ -21,6 +21,7 @@ type queryResponse struct {
// Query
// @Summary Query submissions
// @Description Query submissions
// @Tags submission
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param pid formData uint false "problem id"

View File

@ -13,6 +13,7 @@ type rejudgeRequest struct {
// Rejudge
// @Summary rejudge a submission
// @Description rejudge a submission
// @Tags submission
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param sid formData int true "submission id"

View File

@ -16,6 +16,7 @@ type createRequest struct {
// Create
// @Summary create a new user
// @Description create a new user
// @Tags user
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param username formData string true "username"

View File

@ -15,6 +15,7 @@ type loginRequest struct {
// Login
// @Summary login
// @Description login and return token
// @Tags user
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param username formData string true "username"

View File

@ -9,6 +9,7 @@ import (
// Logout
// @Summary logout
// @Description logout
// @Tags user
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Response 200 {object} e.Response "nil"

View File

@ -13,6 +13,7 @@ type profileRequest struct {
// Profile
// @Summary profile
// @Description fetch user profile
// @Tags user
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param uid formData int false "user id"