handler

package
v0.0.0-...-47d3968 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachHandler

func AttachHandler(g *gin.Engine, db *gorm.DB)

Types

type BalanceResponseData

type BalanceResponseData struct {
	WalletID string `json:"wallet_id"`
	Balance  uint64 `json:"balance"`
}

type TopupRequestData

type TopupRequestData struct {
	Amount uint32 `form:"amount" binding:"required"`
}

type TopupResponseData

type TopupResponseData struct {
	domain.Transaction
}

type TransferRequestData

type TransferRequestData struct {
	ReceiverID string `form:"receiver_id" binding:"required"`
	Amount     uint32 `form:"amount" binding:"required"`
	Notes      string `form:"notes" binding:"required"`
}

type WalletHandler

type WalletHandler struct {
	// contains filtered or unexported fields
}

func (*WalletHandler) BalanceGet

func (h *WalletHandler) BalanceGet(c *gin.Context)

func (*WalletHandler) TopUpPost

func (h *WalletHandler) TopUpPost(c *gin.Context)

func (*WalletHandler) TransferPost

func (h *WalletHandler) TransferPost(c *gin.Context)

Jump to

Keyboard shortcuts

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