Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context[TRequest any, TEntity any, TModel any] struct { Ctx context.Context FiberCtx *fiber.Ctx Request TRequest Mapper mapper.CruderMapper[TEntity, TModel] Data ContextData }
func NewContext ¶
type ContextData ¶
type ContextData struct {
// contains filtered or unexported fields
}
type Crud ¶
type Crud[TEntity any, TModel any] struct { UseCase appusecase.CruderUseCase[TEntity] Mapper mapper.CruderMapper[TEntity, TModel] }
func NewCrud ¶
func NewCrud[TEntity any, TModel any](useCase appusecase.CruderUseCase[TEntity], mapper mapper.CruderMapper[TEntity, TModel]) *Crud[TEntity, TModel]
func (*Crud[TEntity, TModel]) GetFirstById ¶
Click to show internal directories.
Click to hide internal directories.