task

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Create

func (h *Controller) Create(c *fiber.Ctx) error

func (*Controller) Delete

func (h *Controller) Delete(c *fiber.Ctx) error

func (*Controller) Detail

func (h *Controller) Detail(c *fiber.Ctx) error

func (*Controller) List

func (h *Controller) List(c *fiber.Ctx) error

func (*Controller) RegisterRoutes

func (h *Controller) RegisterRoutes(router fiber.Router)

func (*Controller) Summary

func (h *Controller) Summary(c *fiber.Ctx) error

func (*Controller) Update

func (h *Controller) Update(c *fiber.Ctx) error

func (*Controller) UpdateStatus

func (h *Controller) UpdateStatus(c *fiber.Ctx) error

type SummaryResponse

type SummaryResponse struct {
	Total     int64 `json:"total"`
	Proses    int64 `json:"proses"`
	Terlambat int64 `json:"terlambat"`
	Selesai   int64 `json:"selesai"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL