structs

package
v0.0.0-...-3349ed0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	UUID        uuid.UUID
	WhatToDo    string
	Status      string
	CreatedAt   time.Time
	LastUpdated time.Time
}

type TaskCreateDTO

type TaskCreateDTO struct {
	WhatToDo string `json:"description" mapstructure:"description" binding:"required"`
	Status   string `json:"status" mapstructure:"status" binding:"required"`
}

func FactoryTaskCreateDTO

func FactoryTaskCreateDTO(task *Task) *TaskCreateDTO

func (*TaskCreateDTO) ReverseCreateDTO

func (dto *TaskCreateDTO) ReverseCreateDTO() *Task

type TaskPublicDTO

type TaskPublicDTO struct {
	UUID        uuid.UUID `json:"task_uuid" mapstructure:"task_uuid" binding:"required"`
	WhatToDo    string    `json:"description" mapstructure:"description" binding:"required"`
	Status      string    `json:"status" mapstructure:"status" binding:"required"`
	CreatedAt   time.Time `json:"created_at" mapstructure:"created_at" binding:"required"`
	LastUpdated time.Time `json:"last_updated" mapstructure:"last_updated" binding:"required"`
}

func FactoryTaskPublicDTO

func FactoryTaskPublicDTO(task *Task) *TaskPublicDTO

func (*TaskPublicDTO) ReversePublicDTO

func (dto *TaskPublicDTO) ReversePublicDTO() *Task

type TaskUpdateDTO

type TaskUpdateDTO struct {
	WhatToDo string `json:"description" mapstructure:"description" binding:"required"`
	Status   string `json:"status" mapstructure:"status" binding:"required"`
}

func FactoryTaskUpdateDTO

func FactoryTaskUpdateDTO(task *Task) *TaskUpdateDTO

func (*TaskUpdateDTO) ReverseUpdateDTO

func (dto *TaskUpdateDTO) ReverseUpdateDTO() *Task

Jump to

Keyboard shortcuts

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