controller

package
v0.0.0-...-eac86dd Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITodoController

type ITodoController interface {
	CreateTodo(ctx *gin.Context)
	CompleteTodo(ctx *gin.Context)
	GetTodo(ctx *gin.Context)
}

func New

func New(todoDomain ITodoDomain) ITodoController

type ITodoDomain

type ITodoDomain interface {
	GetTodo(id int) (*models.Todo, error)
	CreateTodo(todo *models.Todo) error
	CompleteTodo(todoID int) error
}

Jump to

Keyboard shortcuts

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