param

package
v0.0.0-...-539b324 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAccountRequest

type CreateAccountRequest struct {
	FistName string `json:"fist_name"`
	LastName string `json:"last_name"`
	Password string `json:"password"`
	Balance  int64  `json:"balance"`
}

type CreateAccountResponse

type CreateAccountResponse struct {
	FistName string `json:"fist_name"`
	LastName string `json:"last_name"`
	Number   int64  `json:"number"`
}

type CreateTokenRequst

type CreateTokenRequst struct {
	Number int64
}

type DeleteAccountRequest

type DeleteAccountRequest struct {
	Number int64 `json:"number"`
}

type GetAccountByNumberRequest

type GetAccountByNumberRequest struct {
	Number int64 `json:"number"`
}

type GetAccountByNumberResponse

type GetAccountByNumberResponse struct {
	FistName  string    `json:"fist_name"`
	LastName  string    `json:"last_name"`
	Number    int64     `json:"number"`
	Balance   int64     `json:"balance"`
	CreatedAt time.Time `json:"created_at"`
}

type LoginRequest

type LoginRequest struct {
	Number   int64  `json:"number"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	TokenString string
	Status      LoginStatus
}

type LoginStatus

type LoginStatus string
const (
	LoginSuccessful   LoginStatus = "Login Successful"
	LoginUnsuccessful LoginStatus = "Login Unsuccessful"
)

type PassCheckRespone

type PassCheckRespone struct {
	Truly bool
}

type TransferAmountRequest

type TransferAmountRequest struct {
	FromAccount int64 `json:"from_account"`
	ToAccount   int64 `json:"to_account"`
	Amount      int64 `json:"amount"`
}

type TransferAmountResponse

type TransferAmountResponse struct {
	Status TransferStatus `json:"status"`
}

type TransferStatus

type TransferStatus string
const (
	Successful   TransferStatus = "Successful"
	Unsuccessful TransferStatus = "Unsuccessful"
)

Jump to

Keyboard shortcuts

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