handler

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericHandlerInterface

type GenericHandlerInterface[T any] interface {
	Create(c *gin.Context)
	Update(c *gin.Context)
	Delete(c *gin.Context)

	Read(c *gin.Context)
	FindAll(c *gin.Context)
}

func NewHandler

func NewHandler[T easywalk.SimplyEntityInterface](group *gin.RouterGroup, svc service.SimplyServiceInterface[T]) GenericHandlerInterface[T]

type SimplyHandler

type SimplyHandler[T easywalk.SimplyEntityInterface] struct {
	Svc service.SimplyServiceInterface[T]
}

func (SimplyHandler[T]) Create

func (h SimplyHandler[T]) Create(c *gin.Context)

func (SimplyHandler[T]) Delete

func (h SimplyHandler[T]) Delete(c *gin.Context)

func (SimplyHandler[T]) FindAll

func (h SimplyHandler[T]) FindAll(c *gin.Context)

func (SimplyHandler[T]) Read

func (h SimplyHandler[T]) Read(c *gin.Context)

func (SimplyHandler[T]) Update

func (h SimplyHandler[T]) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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