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
Click to show internal directories.
Click to hide internal directories.