services

package
v0.0.0-...-a655b0a Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceGraphSet = wire.NewSet(
	NewWalletService,
)

Functions

This section is empty.

Types

type UpdateBody

type UpdateBody struct {
	Id     int     `json:"id,omitempty"`
	Amount float64 `json:"amount,omitempty"`
}

type WalletService

type WalletService struct {
	// contains filtered or unexported fields
}

func NewWalletService

func NewWalletService(
	walletRepo repos.WalletRepo,
) *WalletService

func (*WalletService) AddWallet

func (o *WalletService) AddWallet(req *http.Request) (*entities.Wallet, error)

func (*WalletService) UpdateWalletBalance

func (o *WalletService) UpdateWalletBalance(req *http.Request) (*entities.Wallet, error)

Jump to

Keyboard shortcuts

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