Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemUseCase ¶
type ItemUseCase interface { CreateNote(title string, tags ...string) (*entities.Note, error) CreateTask(title string, tags ...string) (*entities.Task, error) GetItems() entities.ItemCollection GetItem(id int) entities.Manageable GetNoteById(id int) (*entities.Note, error) GetTaskById(id int) (*entities.Task, error) EditItem(id int, data map[string]interface{}) error CloneItem(id int) (entities.Manageable, error) ArchiveItem(id int) error RestoreItem(id int) error DeleteItem(id int) error TriggerEvent(id int, event string) error }
func NewItemUseCase ¶
func NewItemUseCase(repository infrastructure.ItemRepository) ItemUseCase
Click to show internal directories.
Click to hide internal directories.