app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase

type UseCase interface {
	// CreateToDoList creates new t-odo list in t-odo repository
	CreateToDoList(ctx context.Context, list *todo.List) error
	UpdateToDoList(ctx context.Context, id uint, list *todo.List) error
	DeleteToDoList(ctx context.Context, listId uint, userId uint) error
	CreateToDoItem(ctx context.Context, item *todo.Item) error
	UpdateToDoItem(ctx context.Context, itemId uint, item *todo.Item) error
	DeleteToDoItem(ctx context.Context, itemId uint, userId uint) error
	GetTodoListByUserID(ctx context.Context, userId uint) ([]*todo.List, error)
}

func NewService

func NewService(todoRepo todo.Repository) UseCase

NewService returns a pointer to auth service, and implements the auth use case

Jump to

Keyboard shortcuts

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