api

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTaskRequest

type CreateTaskRequest struct {
	Name       string `json:"name"`
	Difficulty int    `json:"difficulty"`
}

type CreateTaskResponse

type CreateTaskResponse struct {
	entity.Task
}

type GetTaskResponse

type GetTaskResponse struct {
	entity.Task
}

type SearchTaskResponse

type SearchTaskResponse struct {
	Pages int           `json:"pages"`
	Tasks []entity.Task `json:"tasks"`
}

type StartTaskRequest

type StartTaskRequest struct {
	Id         int64 `json:"id"`
	Difficulty int   `json:"difficulty"`
}

type UpdateStatusRequest

type UpdateStatusRequest struct {
	Id     int64         `json:"id"`
	Status entity.Status `json:"status"`
}

Jump to

Keyboard shortcuts

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