todo

package
v0.0.0-...-8336b8e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTodoRequest

type AddTodoRequest struct {
	Content string `json:"content" binding:"required"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) AddTodo

func (h *Handler) AddTodo(ctx *gin.Context)

func (*Handler) DelTodo

func (h *Handler) DelTodo(ctx *gin.Context)

func (*Handler) GetTodo

func (h *Handler) GetTodo(ctx *gin.Context)

func (*Handler) MGetTodo

func (h *Handler) MGetTodo(ctx *gin.Context)

func (*Handler) UpdTodo

func (h *Handler) UpdTodo(ctx *gin.Context)

type HandlerService

type HandlerService interface {
	AddTodo(ctx *gin.Context)
	GetTodo(ctx *gin.Context)
	MGetTodo(ctx *gin.Context)
	DelTodo(ctx *gin.Context)
	UpdTodo(ctx *gin.Context)
}

func NewHandlerService

func NewHandlerService(db *gorm.DB) HandlerService

type UpdTodoRequest

type UpdTodoRequest struct {
	Content string `json:"content" binding:"required"`
}

Jump to

Keyboard shortcuts

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