Documentation ¶
Index ¶
- func CreateApi[C, V any](ctx *gin.Context, fn func(context.Context, C) (V, error))
- func DeleteByIdApi(ctx *gin.Context, fn func(context.Context, uint, ...uint) error)
- func Error(ctx *gin.Context, code int, err error)
- func OneByIdApi[T any](ctx *gin.Context, fn func(context.Context, uint) (*T, error))
- func PaginateApi[Q, D any](ctx *gin.Context, fn func(context.Context, *Q) (*repo.Paginator[D], error))
- func Response(ctx *gin.Context, code int, message string, data any)
- func ReturnWithCode(ctx *gin.Context, code int, data any)
- func Success(ctx *gin.Context, data any)
- func UpdateByIdApi[T any](ctx *gin.Context, fn func(context.Context, uint, *T) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByIdApi ¶
func OneByIdApi ¶
func PaginateApi ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.