todo

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IBiz

type IBiz interface {
	// GetByID serve caller to given task's id to get a task
	GetByID(ctx contextx.Contextx, id string) (task *todo.Task, err error)

	// List serve caller to list all tasks
	List(ctx contextx.Contextx, start, end int) (tasks []*todo.Task, total int, err error)

	// Create serve caller to create a task
	Create(ctx contextx.Contextx, title string) (task *todo.Task, err error)

	// UpdateStatus serve caller to update the task's status by id
	UpdateStatus(ctx contextx.Contextx, id string, status bool) (task *todo.Task, err error)

	// ChangeTitle serve caller to change the task's title by id
	ChangeTitle(ctx contextx.Contextx, id string, title string) (task *todo.Task, err error)

	// Delete serve caller to given task's id to delete the task
	Delete(ctx contextx.Contextx, id string) error
}

IBiz describe todo business service function

func CreateIBiz

func CreateIBiz(logger *zap.Logger, repo2 repo.IRepo) (IBiz, error)

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo) IBiz

NewImpl serve caller to create an IBiz

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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