bonus

package
v0.0.0-...-e765db0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet()

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IBiz

type IBiz interface {
	// GetPacketByID serve caller to given id to get the packet information
	GetPacketByID(ctx contextx.Contextx, id string) (info *bonus.Packet, err error)

	// Publish serve caller to publish bonus by an amount
	Publish(ctx contextx.Contextx, amount int) (packet *bonus.Packet, err error)

	// GetIncome serve caller to get an income from packet
	GetIncome(ctx contextx.Contextx, packet *bonus.Packet) (income *bonus.Income, err error)
}

IBiz declare bonus service function

Jump to

Keyboard shortcuts

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