controllers

package
v0.0.0-...-88196c3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateItem

func CreateItem(c *fiber.Ctx)

func CreateList

func CreateList(c *fiber.Ctx)

func GetList

func GetList(c *fiber.Ctx)

func GetLists

func GetLists(c *fiber.Ctx)

func UpdateItem

func UpdateItem(c *fiber.Ctx)

func UpdateList

func UpdateList(c *fiber.Ctx)

Types

type CreateItemInput

type CreateItemInput struct {
	Name   string `json:"name"`
	Count  uint   `json:"count"`
	ListID string `json:"list_id"`
}

type CreateListInput

type CreateListInput struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Color       uint32 `json:"color"`
}

type Lists

type Lists struct {
	Lists []models.List `json:"lists"`
}

type UpdateItemInput

type UpdateItemInput struct {
	Name    string `json:"name"`
	Count   uint   `json:"count"`
	Done    bool   `json:"done"`
	Removed bool   `json:"removed"`
}

Jump to

Keyboard shortcuts

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