Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { FailedField string `json:"field"` Tag string `json:"tag"` Value string `json:"value"` }
func ValidateTask ¶
func ValidateTask(task models.TaskModel) (errors []*ErrorResponse)
type TaskController ¶
type TaskController interface { All(ctx *fiber.Ctx) error GetById(ctx *fiber.Ctx) error Create(ctx *fiber.Ctx) error Update(ctx *fiber.Ctx) error Delete(ctx *fiber.Ctx) error }
func NewTaskHttpController ¶
func NewTaskHttpController(taskUseCase outer.TaskUseCase) TaskController
Click to show internal directories.
Click to hide internal directories.