task

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: GPL-3.0 Imports: 9 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 user to get a task by id
	GetByID(ctx contextx.Contextx, id, resultID int64) (*todo.Task, error)

	// List serve user to list all tasks
	List(ctx contextx.Contextx, resultID int64, page, size int) ([]*todo.Task, error)

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

	// ModifyTitle serve user to modify title of task
	ModifyTitle(ctx contextx.Contextx, id, resultID int64, title string) (t *todo.Task, err error)

	// UpdateStatus serve user to update status of task
	UpdateStatus(ctx contextx.Contextx, id, resultID int64, status todo.Status) (t *todo.Task, err error)

	// Delete serve user to delete a task by id
	Delete(ctx contextx.Contextx, id, resultID int64) error
}

IBiz declare todo biz service function

func CreateIBiz

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

CreateIBiz serve caller to create an IBiz

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo, node *snowflake.Node) 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