chore: add tag on router
This commit is contained in:
parent
988206ee5d
commit
596a7219cf
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user