userbalance

package
v0.0.0-...-931f746 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserBalance

type UserBalance struct {
	Client *resty.Client
}

func New

func (UserBalance) GetBalance

func (s UserBalance) GetBalance(appCode string, userId int) (entity.CoreBalance, error)

type UserBalanceConfiguration

type UserBalanceConfiguration func(*UserBalance) error

func WithClient

func WithClient(client *resty.Client) UserBalanceConfiguration

type UserBalanceRepository

type UserBalanceRepository interface {
	// @GET("/app/{appCode}/user/{userId}/balance")
	// g.b.l<CoreBalance> getBalance(@Path("appCode") @NotNull String str, @Path("userId") int i2);
	GetBalance(appCode string, userId int) (entity.CoreBalance, error)
}

Jump to

Keyboard shortcuts

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