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: 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 caller to given id to get a record information
	GetByID(ctx contextx.Contextx, id int64) (info *event.Record, err error)

	// List serve caller to list all records by page and size
	List(ctx contextx.Contextx, actID int64, page, size int) (infos []*event.Record, err error)

	// NewRecord serve caller to create a new record into spend history
	NewRecord(ctx contextx.Contextx, actID, payerID int64, remark string, members []*user.Member, total int) (info *event.Record, err error)

	// Delete serve caller to delete a record by id
	Delete(ctx contextx.Contextx, id, actID int64) error
}

IBiz declare history's 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