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 New(cfgs ...UserBalanceConfiguration) (UserBalance, error)
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) }
Click to show internal directories.
Click to hide internal directories.