history

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 provider set for wire

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	// GetByID serve caller to given id to get a record detail
	GetByID(c *gin.Context)

	// List serve caller list all spend records of activity
	List(c *gin.Context)

	// NewRecord serve caller to create a spend record for activity
	NewRecord(c *gin.Context)

	// Delete serve caller to given id to delete a record
	Delete(c *gin.Context)
}

IHandler declare history api handlers

func CreateIHandler

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

CreateIHandler serve caller to create an IHandler

func NewImpl

func NewImpl(logger *zap.Logger, biz history.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