todo

package
v0.0.0-...-b1c54a0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo struct {
	ID          primitive.ObjectID `json:"_id" bson:"_id"`
	Title       string             `json:"title"`
	Description string             `json:"description"`
	CreatedAt   time.Time          `json:"createdAt"`
	CompletedAt time.Time          `json:"completedAt"`
	Completed   bool               `json:"completed"`
}

type TodoController

type TodoController struct {
	Db *mongo.Database
}

func (*TodoController) AddTodo

func (tc *TodoController) AddTodo(c *gin.Context)

func (*TodoController) DeleteTodo

func (tc *TodoController) DeleteTodo(c *gin.Context)

func (*TodoController) GetTodos

func (tc *TodoController) GetTodos(c *gin.Context)

func (*TodoController) MarkDone

func (tc *TodoController) MarkDone(c *gin.Context)

Jump to

Keyboard shortcuts

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