Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBalanceRequest ¶
type AddBalanceRequest struct { AccountID int64 `json:"account_id" binding:"required,gte=1"` Amount int64 `json:"amount" binding:"gte=0"` }
func (AddBalanceRequest) ToDTO ¶
func (r AddBalanceRequest) ToDTO() account.AddBalanceDTO
type AddBalanceResponse ¶
type AddBalanceResponse struct {
Balance int64 `json:"balance"`
}
type GetBalanceResponse ¶
type GetBalanceResponse struct {
Balance int64 `json:"balance"`
}
type Handler ¶
type Handler struct { *handler.BaseHandler // contains filtered or unexported fields }
func (*Handler) AddBalance ¶
func (*Handler) GetBalance ¶
func (*Handler) InitAPI ¶
func (h *Handler) InitAPI(router *gin.RouterGroup)
func (*Handler) TransferBalance ¶
type TransferBalanceRequest ¶
type TransferBalanceRequest struct { SenderID int64 `json:"sender_id" binding:"required,gte=1"` ReceiverID int64 `json:"receiver_id" binding:"required,gte=1"` Amount int64 `json:"amount" binding:"required,gt=0"` }
func (TransferBalanceRequest) ToDTO ¶
func (r TransferBalanceRequest) ToDTO() account.TransferBalanceDTO
type TransferBalanceResponse ¶
Click to show internal directories.
Click to hide internal directories.