task

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	// GetByID serve user to get a task by id
	GetByID(c *gin.Context)

	// List serve user to list all tasks
	List(c *gin.Context)

	// Create serve user to creat a task
	Create(c *gin.Context)

	// ModifyTitle serve user to modify title of task
	ModifyTitle(c *gin.Context)

	// UpdateStatus serve user to update status of task
	UpdateStatus(c *gin.Context)

	// Delete serve user to delete a task by id
	Delete(c *gin.Context)
}

IHandler declare todo api handler

func CreateIHandler

func CreateIHandler(logger *zap.Logger, biz task.IBiz) (IHandler, error)

CreateIHandler serve caller to create an IHandler

func NewImpl

func NewImpl(logger *zap.Logger, biz task.IBiz) IHandler

NewImpl serve caller to create an IHandler

Jump to

Keyboard shortcuts

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