response

package
v0.0.0-...-b1d2da9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type RegisterResponse

type RegisterResponse struct {
	ID            uint32  `json:"id"`
	AccountNumber string  `json:"account_number"`
	Name          string  `json:"name"`
	Surname       string  `json:"surname"`
	Email         string  `json:"email"`
	Balance       float64 `json:"balance"`
}

type TransferResponse

type TransferResponse struct {
	Status          bool     `json:"status"`
	Message         string   `json:"message"`
	SenderBalance   *float64 `json:"sender_balance,omitempty"`
	ReceiverBalance *float64 `json:"receiver_balance,omitempty"`
	Fee             float64  `json:"fee,omitempty"`
}

Jump to

Keyboard shortcuts

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