modelview

package
v0.0.0-...-b31642b Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromVmLabel

func FromVmLabel(vm LabelVm, lr repository.ILabelRepository) (models.Label, error)

func FromVmLabels

func FromVmLabels(mvs []LabelVm, lr repository.ILabelRepository) ([]models.Label, error)

Types

type LabelVm

type LabelVm struct {
	Id          uint   `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Color       string `json:"color"`
	Priority    uint   `json:"priority"`
}

func FromDbLabel

func FromDbLabel(label models.Label) LabelVm

func FromDbLabels

func FromDbLabels(labels []models.Label) []LabelVm

type TaskVm

type TaskVm struct {
	Id          uint      `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	DueDate     time.Time `json:"due_date"`
	Labels      []LabelVm `json:"labels"`
	Priority    float32   `json:"priority"`
}

func FromDbTask

func FromDbTask(task models.Task) TaskVm

func FromDbTasks

func FromDbTasks(tasks []models.Task) []TaskVm

Jump to

Keyboard shortcuts

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