request

package
v0.0.0-...-34ab1a3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	AccessToken string
	Path        string // Путь теста
}

func GetCreateRequest

func GetCreateRequest(c *gin.Context) (*CreateRequest, error)

type EndRequest

type EndRequest struct {
	AccessToken string
	ID          primitive.ObjectID
}

func GetEndRequest

func GetEndRequest(c *gin.Context) (*EndRequest, error)

type ReadRequest

type ReadRequest struct {
	AccessToken string
	ID          primitive.ObjectID
}

func GetReadRequest

func GetReadRequest(c *gin.Context) (*ReadRequest, error)

type UpdateRequest

type UpdateRequest struct {
	AccessToken string
	ID          primitive.ObjectID

	Num        uint64 `json:"num"`        // Номер задачи в массиве
	AnswerUser string `json:"answerUser"` // Ответ пользователя
}

func GetUpdateRequest

func GetUpdateRequest(c *gin.Context) (*UpdateRequest, error)

Jump to

Keyboard shortcuts

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