domain

package
v0.0.0-...-1015d97 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRepository

type TaskRepository interface {
	GetTask(taskID uint) (task models.Task, err error)
	ListTasks(criteria models.Task) (tasks map[int]models.Task, err error)
	CreateTask(task models.Task) (result models.Task, err error)
	EditTask(taskID uint, requestTask models.Task) (result models.Task, err error)
	EditTaskStatus(taskID uint, status string) (result models.Task, err error)

	DeleteTask(taskID uint) (err error)
}

type TaskUsecase

type TaskUsecase interface {
	GetTask(taskID uint) (task models.Task, err error)
	ListTasks(criteria models.TaskBody) (tasks map[int]models.Task, err error)
	CreateTask(task models.TaskBody) (result models.Task, err error)
	EditTask(taskID uint, requestTask models.TaskBody) (result models.Task, err error)
	EditTaskStatus(taskID uint, requestTask models.TaskBody) (result models.Task, err error)
	DeleteTask(taskID uint) (err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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