Documentation
¶
Index ¶
- Constants
- type Controller
- func (h *Controller) Create(c *fiber.Ctx) error
- func (h *Controller) Delete(c *fiber.Ctx) error
- func (h *Controller) Detail(c *fiber.Ctx) error
- func (h *Controller) List(c *fiber.Ctx) error
- func (h *Controller) RegisterRoutes(router fiber.Router)
- func (h *Controller) Summary(c *fiber.Ctx) error
- func (h *Controller) Update(c *fiber.Ctx) error
- func (h *Controller) UpdateStatus(c *fiber.Ctx) error
- type SummaryResponse
- type TaskRequest
- type UpdateStatusRequest
Constants ¶
View Source
const Module = "task"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo taskRepo.Repository, roleRepo role.Repository, jwtSvc *utils.JWTService) *Controller
func (*Controller) RegisterRoutes ¶
func (h *Controller) RegisterRoutes(router fiber.Router)
func (*Controller) UpdateStatus ¶
func (h *Controller) UpdateStatus(c *fiber.Ctx) error
type SummaryResponse ¶
type TaskRequest ¶
type TaskRequest struct {
Title string `json:"title" validate:"required,max=150"`
Description string `json:"description" validate:"max=500"`
AssignedTo uint `json:"assigned_to" validate:"required"`
DueDate string `json:"due_date" validate:"required"`
Priority string `json:"priority" validate:"required,oneof=rendah sedang tinggi"`
}
type UpdateStatusRequest ¶
type UpdateStatusRequest struct {
Status string `json:"status" validate:"required,oneof=baru proses selesai"`
}
Click to show internal directories.
Click to hide internal directories.