Documentation ¶
Index ¶
- func FromVmLabel(vm LabelVm, lr repository.ILabelRepository) (models.Label, error)
- func FromVmLabels(mvs []LabelVm, lr repository.ILabelRepository) ([]models.Label, error)
- func FromVmTask(vm TaskVm, tr repository.ITaskRepository, lr repository.ILabelRepository) (models.Task, error)
- func FromVmTasks(tasks []TaskVm, tr repository.ITaskRepository, lr repository.ILabelRepository) ([]models.Task, error)
- type LabelVm
- type TaskVm
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)
func FromVmTask ¶
func FromVmTask(vm TaskVm, tr repository.ITaskRepository, lr repository.ILabelRepository) (models.Task, error)
func FromVmTasks ¶
func FromVmTasks(tasks []TaskVm, tr repository.ITaskRepository, lr repository.ILabelRepository) ([]models.Task, 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 FromDbLabels ¶
Click to show internal directories.
Click to hide internal directories.