requests

package
v0.0.0-...-ede10f1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 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 CreateToDoRequest

type CreateToDoRequest struct {
	Title       string `json:"title" form:"title"`
	Description string `json:"description" form:"description"`
}

func (*CreateToDoRequest) ToModel

func (ToDo *CreateToDoRequest) ToModel() (models.ToDo, error)

type ListToDoRequest

type ListToDoRequest struct {
	Page  int    `form:"page"`
	Limit int    `form:"limit"`
	Order string `form:"order"`
}

type UpdateToDoRequest

type UpdateToDoRequest struct {
	Title       *string `json:"title" form:"title"`
	Description *string `json:"description" form:"description"`
	Done        *bool   `json:"done" form:"done"`
}

func (*UpdateToDoRequest) ToModel

func (ToDo *UpdateToDoRequest) ToModel() (models.ToDo, error)

func (*UpdateToDoRequest) Validate

func (ToDo *UpdateToDoRequest) Validate(model *models.ToDo)

Jump to

Keyboard shortcuts

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