Documentation ¶
Index ¶
Constants ¶
View Source
const (
PseudoAccount = "c1e395d9-8c00-4124-819a-85b0402900cf"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // Deposit deposit money to specific user's account Deposit(ctx context.Context, accountID string, amount int64) (string, error) // Deposit withdraw money from specific user's account Withdraw(ctx context.Context, accountID string, amount int64) (string, error) // Transfer transfer money from one account to another Transfer(ctx context.Context, from, to string, amount int64) (string, error) // GetAccount get account information of specific users's account GetAccount(ctx context.Context, accountID string) (*mBank.Account, error) }
Click to show internal directories.
Click to hide internal directories.