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
Click to show internal directories.
Click to hide internal directories.