author

package
v0.0.0-...-f47b430 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDataset

func AddDataset(ctx *fiber.Ctx) error

AddDataset shares a problem with other user HealthCheck godoc @Summary adds dataset for a problem @Description adds datasets(input & output file) for a problem @Tags author @Param data body structs.ShareProblemOption true "data" @Param id path string true "problem id" @Accept application/json @Produce json @Success 200 {object} map[string]interface{} @Router /author/problems/{id}/dataset [post]

func AddDiscussionMessage

func AddDiscussionMessage(ctx *fiber.Ctx) error

AddDiscussionMessage adds discussion messages for a problem HealthCheck godoc @Summary adds discussion messages for a problem @Description adds discussion messages for a problem @Tags author @Param data body structs.DiscussionOption true "data" @Param id path string true "problem id" @Accept application/json @Produce json @Success 200 {object} map[string]interface{} @Router /author/problems/{id}/discussions [post]

func AddProblemSolution

func AddProblemSolution(ctx *fiber.Ctx) error

AddProblemSolution adds a solution for a problem HealthCheck godoc @Summary adds a solution for a problem @Description adds solutions for a problem. Only authorized people (to whom have to that problem) can add solution @Tags author @Param data body structs.SolutionOption true "data" @Param id path string true "problem id" @Accept application/json @Produce json @Success 200 {object} map[string]interface{} @Router /author/problems/{id}/solutions [post]

func AddProblemTag

func AddProblemTag(ctx *fiber.Ctx) error

func CreateProblem

func CreateProblem(ctx *fiber.Ctx) error

CreateProblem creates a problem HealthCheck godoc @Summary creates a problem. @Description creates a problem for the oj. @Tags author @Param data body structs.CreateProblemOption true "data" @Accept application/json @Produce json @Success 200 {object} map[string]interface{} @Router /author/problems/ [post]

func DeleteProblemSolution

func DeleteProblemSolution(ctx *fiber.Ctx) error

func ShareProblem

func ShareProblem(ctx *fiber.Ctx) error

ShareProblem shares a problem with other user HealthCheck godoc @Summary shares a problem with other user @Description shares problem so that another user can contribute to that problem. @Tags author @Param data body structs.ShareProblemOption true "data" @Param id path string true "problem id" @Accept application/json @Produce json @Success 200 {object} map[string]interface{} @Router /author/problems/{id}/ [put]

func UpdateProblem

func UpdateProblem(ctx *fiber.Ctx) error

UpdateProblem creates a problem HealthCheck godoc @Summary updates a problem. @Description update problem with the new information. @Tags author @Param data body structs.UpdateProblemOption true "data" @Param id path string true "problem id" @Accept application/json @Produce json @Success 200 {object} map[string]interface{} @Router /author/problems/{id} [put]

func UpdateProblemSolution

func UpdateProblemSolution(ctx *fiber.Ctx) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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