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)
Click to show internal directories.
Click to hide internal directories.